DescriptionScreenshot disabling policy (work in progress)
Add group policy to disable taking screenshots:
* by keyboard shortcut (using local state)
* when reporting feedback (using local state)
* by extension API (using user prefs)
How to test:
- Press Ctrl+F5 (or the corresponding key combination on chromebook) to take a screenshot. This should flash a screen and create a screenshot in your files, if the policy is not enabled.
- Install http://code.google.com/chrome/extensions/examples/api/tabs/screenshot.zip extension to test extension APIs. This allows to take tab screenshots of code.google.com.
- In Chrome menu, use Tools -> Report an Issue... to go to issue screen, which should contain a screenshot (if the policy is not enabled)
Implementation:
- Changed browser::GrabWindowSnapshot and ScreenshotTaker::GrabWindowSnapshot to block screenshots triggered by accelerators and feedback form
- CaptureVisibleTabFunction::RunImpl to disable tab screenshots made by extension API
BUG=chromium-os:24747
TEST= Disable screenshots through policy, check I screenshots can created/viewed
TBR= zmo@chromium.org, jbates@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148963
Patch Set 1 #
Total comments: 28
Patch Set 2 : Addressed comments #
Total comments: 14
Patch Set 3 : Addressed comments (2), hooking into GrabWindowSnapshot instead of ChromeShellDelegate, rebased on … #
Total comments: 24
Patch Set 4 : Addressed comments (3), made policy available on all platforms #Patch Set 5 : Broken screenshot not visible on feedback page when screenshots are disabled #
Total comments: 12
Patch Set 6 : Addressed comments (4) #
Total comments: 6
Patch Set 7 : Addressed comments (5) #
Total comments: 6
Patch Set 8 : Addressed comments (6) #Patch Set 9 : Rebased #Patch Set 10 : Rebased #Patch Set 11 : Fixed Android and Mac builds #Messages
Total messages: 29 (0 generated)
|