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

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

Issue 10830135: Revert 149604 - Support calling GrabWindowSnapshot when no BrowserProcess instance is avaliable (eg… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | chrome/browser/ui/window_snapshot/window_snapshot.cc » ('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.h
===================================================================
--- chrome/browser/ui/window_snapshot/window_snapshot.h (revision 149605)
+++ chrome/browser/ui/window_snapshot/window_snapshot.h (working copy)
@@ -20,11 +20,7 @@
// Grabs a snapshot of the rectangle area |snapshot_bounds| with respect to the
// top left corner of the designated window and stores a PNG representation
// into a byte vector. On Windows, |window| may be NULL to grab a snapshot of
-// the primary monitor. This checks policy settings if taking screenshots is
-// allowed, and is intended to by used by browser code. If you need to take a
-// screenshot for debugging purposes, use ui::GrabWindowSnapshot
-// (ui/window_snapshot/window_snapshot.h).
-// Returns true if the operation is successful (ie. permitted).
+// the primary monitor. Returns true if the operation is successful.
bool GrabWindowSnapshot(
gfx::NativeWindow window,
std::vector<unsigned char>* png_representation,
« no previous file with comments | « no previous file | chrome/browser/ui/window_snapshot/window_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698