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

Unified Diff: chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h

Issue 1135413002: Disable screenshot uploading if there has been user input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self-review Created 5 years, 7 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/chromeos/policy/remote_commands/device_command_screenshot_job.h
diff --git a/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h b/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h
index 819ca33c472958c9b9e2e518cdcb786cace2fb01..5893bc9b5ed0a3c8614cacc4b6b1d7b3d5624a0f 100644
--- a/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h
+++ b/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.h
@@ -62,6 +62,12 @@ class DeviceCommandScreenshotJob : public RemoteCommandJob,
public:
virtual ~Delegate() {}
+ // Returns true if screenshots are allowed in this session. Returns false
+ // if the current session is not an auto-launched kiosk session, or there
+ // have been certain types of user input that may result in leaking private
+ // information.
+ virtual bool IsScreenshotAllowed() = 0;
+
// Acquires a snapshot of |source_rect| in |window| and invokes |callback|
// with the PNG data. The passed-in callback will not be invoked after the
// delegate has been destroyed. See e.g. ScreenshotDelegate.

Powered by Google App Engine
This is Rietveld 408576698