There should be a unittest to guard this feature.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/227851d714bdc081de4c7e81669420380fa6c000 commit 227851d714bdc081de4c7e81669420380fa6c000 Author: Muyuan Li <muyuanli@chromium.org> Date: Tue Feb 13 20:16:02 2018 arc: add test for blocking incognito windows in screenshot BUG= 778852 TEST=ArcVoiceInteractionFrameworkServiceUnittest. CapturingScreenshotBlocksIncognitoWindows Change-Id: I0bfa5a486759783d7c8926a309c6b5da9b02dcc6 Reviewed-on: https://chromium-review.googlesource.com/914983 Commit-Queue: Muyuan Li <muyuanli@chromium.org> Reviewed-by: Luis Hector Chavez <lhchavez@chromium.org> Cr-Commit-Position: refs/heads/master@{#536438} [modify] https://crrev.com/227851d714bdc081de4c7e81669420380fa6c000/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc [modify] https://crrev.com/227851d714bdc081de4c7e81669420380fa6c000/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h [modify] https://crrev.com/227851d714bdc081de4c7e81669420380fa6c000/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service_unittest.cc
Comment 1 by jochen@chromium.org
, Nov 2 2017