Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3689)

Unified Diff: chrome/browser/ui/window_snapshot/window_snapshot.cc

Issue 132203004: Remove window_snapshot.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing include Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/window_snapshot/window_snapshot.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/window_snapshot/window_snapshot.cc
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot.cc b/chrome/browser/ui/window_snapshot/window_snapshot.cc
deleted file mode 100644
index 889d97d57c04d63c9bf23d1abff68334c6610b35..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/window_snapshot/window_snapshot.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/window_snapshot/window_snapshot.h"
-
-#include "base/prefs/pref_registry_simple.h"
-#include "base/prefs/pref_service.h"
-#include "chrome/browser/browser_process.h"
-#include "chrome/common/pref_names.h"
-#include "ui/snapshot/snapshot.h"
-
-namespace chrome {
-
-bool GrabWindowSnapshotForUser(
- gfx::NativeWindow window,
- std::vector<unsigned char>* png_representation,
- const gfx::Rect& snapshot_bounds) {
- if (g_browser_process->local_state()->GetBoolean(prefs::kDisableScreenshots))
- return false;
- return ui::GrabWindowSnapshot(window, png_representation,
- snapshot_bounds);
-}
-
-void RegisterScreenshotPrefs(PrefRegistrySimple* registry) {
- registry->RegisterBooleanPref(prefs::kDisableScreenshots, false);
-}
-
-} // namespace chrome
« no previous file with comments | « chrome/browser/ui/window_snapshot/window_snapshot.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698