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

Unified Diff: chrome/browser/ui/window_snapshot/window_snapshot_mac.mm

Issue 10692110: screenshot disabling policy (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments (2), hooking into GrabWindowSnapshot instead of ChromeShellDelegate, rebased on … 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
Index: chrome/browser/ui/window_snapshot/window_snapshot_mac.mm
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_mac.mm b/chrome/browser/ui/window_snapshot/window_snapshot_mac.mm
index b31baa051fb65f8fbc63f6664f6950b5abe5f1fd..a10f344735e8d7d9597dcfe0f466e5515f87203b 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot_mac.mm
+++ b/chrome/browser/ui/window_snapshot/window_snapshot_mac.mm
@@ -13,7 +13,7 @@
namespace browser {
-bool GrabWindowSnapshot(gfx::NativeWindow window,
+bool GrabWindowSnapshotOS(gfx::NativeWindow window,
std::vector<unsigned char>* png_representation,
Mattias Nissler (ping if slow) 2012/07/12 08:59:32 indentation
qfel 2012/07/12 14:48:06 That's how it was in the original. Changed to the
const gfx::Rect& snapshot_bounds) {
NSScreen* screen = [[NSScreen screens] objectAtIndex:0];

Powered by Google App Engine
This is Rietveld 408576698