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

Unified Diff: chrome/browser/ui/ash/screenshot_taker.cc

Issue 10830158: Refactor GrabWindowSnapshot and GrabWindowSnapshotImpl names to GrabWindowSnapshotForUser and GrabW… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Enabled tests Created 8 years, 4 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
Index: chrome/browser/ui/ash/screenshot_taker.cc
diff --git a/chrome/browser/ui/ash/screenshot_taker.cc b/chrome/browser/ui/ash/screenshot_taker.cc
index f11a55f0b0ef34e6f93f489df02cd87a1a302ce7..eff510b104f13dbbadb5fb8cdbe8d0a8c6f8a39e 100644
--- a/chrome/browser/ui/ash/screenshot_taker.cc
+++ b/chrome/browser/ui/ash/screenshot_taker.cc
@@ -121,9 +121,8 @@ bool GrabWindowSnapshot(aura::Window* window,
const gfx::Rect& snapshot_bounds,
std::vector<unsigned char>* png_data) {
#if defined(OS_LINUX)
- // browser::GrabWindowSnapshot checks this too, but RootWindow::GrabSnapshot
- // does not. The statement below is only to support linux-specific XGetImage
- // optimization.
+ // chrome::GrabWindowSnapshotForUser checks this too, but
+ // RootWindow::GrabSnapshot does not.
if (AreScreenshotsDisabled())
return false;
@@ -134,7 +133,7 @@ bool GrabWindowSnapshot(aura::Window* window,
return true;
#endif // OS_LINUX
- return chrome::GrabWindowSnapshot(window, png_data, snapshot_bounds);
+ return chrome::GrabWindowSnapshotForUser(window, png_data, snapshot_bounds);
}
// How opaque should the layer that we flash onscreen to provide visual
« no previous file with comments | « no previous file | chrome/browser/ui/webui/feedback_ui.cc » ('j') | chrome/browser/ui/window_snapshot/window_snapshot.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698