| 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
|
|
|