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

Issue 2854543002: Block incognito browser windows for voice interaction. (Closed)

Created:
3 years, 7 months ago by Muyuan
Modified:
3 years, 7 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, davemoore+watch_chromium.org, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, jbauman+watch_chromium.org, kalyank, lhchavez+watch_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org, victorhsieh+watch_chromium.org, Ian Vollick, yusukes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Recreates the layer hierarchy modulo all layers that belong to incognito windows, replacing them with a solid black layer. BUG=b/37755798 TEST=wm_unittests --gtest_filter=WindowUtilTest.RecreateLayersWithClosure Review-Url: https://codereview.chromium.org/2854543002 Cr-Commit-Position: refs/heads/master@{#472678} Committed: https://chromium.googlesource.com/chromium/src/+/f134db33d0941e7d89ab862455bf17e0b490fc88

Patch Set 1 #

Patch Set 2 : replace layer instead of tweaking layer properties #

Patch Set 3 : syntax optimization #

Patch Set 4 : clean up unnecessary includes #

Total comments: 11

Patch Set 5 : address review comments #

Total comments: 6

Patch Set 6 : address review comment #

Total comments: 2

Patch Set 7 : address review comment #

Patch Set 8 : minor modification to snapshot_aura #

Total comments: 10

Patch Set 9 : WIP: Block incognito browser windows for voice interaction. #

Total comments: 4

Patch Set 10 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -16 lines) Patch
M chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc View 1 2 3 4 5 6 7 8 3 chunks +77 lines, -5 lines 0 comments Download
M ui/snapshot/snapshot_aura.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M ui/snapshot/snapshot_aura.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -4 lines 0 comments Download
M ui/wm/core/window_util.h View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -0 lines 0 comments Download
M ui/wm/core/window_util.cc View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -7 lines 0 comments Download
M ui/wm/core/window_util_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +49 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (16 generated)
Muyuan
reveman@: could you please take a look to see if this whole idea looks good ...
3 years, 7 months ago (2017-05-13 21:55:49 UTC) #6
sky
Isn't this going to be super expensive?
3 years, 7 months ago (2017-05-15 13:41:20 UTC) #13
Luis Héctor Chávez
https://codereview.chromium.org/2854543002/diff/60001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2854543002/diff/60001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode56 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:56: auto blocked_layers = LayerSet(); Why not LayerSet blocked_layers; ? ...
3 years, 7 months ago (2017-05-15 16:47:52 UTC) #14
Muyuan
On 2017/05/15 13:41:20, sky wrote: > Isn't this going to be super expensive? It shouldn't.. ...
3 years, 7 months ago (2017-05-15 17:49:17 UTC) #15
chromium-reviews
On Mon, May 15, 2017 at 1:49 PM, <muyuanli@chromium.org> wrote: > On 2017/05/15 13:41:20, sky ...
3 years, 7 months ago (2017-05-15 17:53:25 UTC) #16
Muyuan
On 2017/05/15 17:53:25, chromium-reviews wrote: > On Mon, May 15, 2017 at 1:49 PM, <mailto:muyuanli@chromium.org> ...
3 years, 7 months ago (2017-05-15 18:08:44 UTC) #17
Muyuan
https://codereview.chromium.org/2854543002/diff/60001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2854543002/diff/60001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode56 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:56: auto blocked_layers = LayerSet(); On 2017/05/15 16:47:52, Luis Héctor ...
3 years, 7 months ago (2017-05-15 18:09:55 UTC) #18
danakj
On Mon, May 15, 2017 at 2:08 PM, <muyuanli@chromium.org> wrote: > On 2017/05/15 17:53:25, chromium-reviews ...
3 years, 7 months ago (2017-05-15 18:20:36 UTC) #19
reveman
https://codereview.chromium.org/2854543002/diff/80001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2854543002/diff/80001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode53 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:53: std::unique_ptr<ui::LayerTreeOwner> BlockIncognitoWindows( Is blocking incognito windows the only thing ...
3 years, 7 months ago (2017-05-15 18:55:07 UTC) #20
Muyuan
Had offline discussion with danakj, we agree that this operation could be expensive for picture ...
3 years, 7 months ago (2017-05-15 19:09:08 UTC) #21
danakj
On Mon, May 15, 2017 at 3:09 PM, <muyuanli@chromium.org> wrote: > Had offline discussion with ...
3 years, 7 months ago (2017-05-15 19:24:54 UTC) #22
Muyuan
On 2017/05/15 19:24:54, danakj wrote: > On Mon, May 15, 2017 at 3:09 PM, <mailto:muyuanli@chromium.org> ...
3 years, 7 months ago (2017-05-15 19:46:32 UTC) #23
Muyuan
On 2017/05/15 19:46:32, Muyuan wrote: > On 2017/05/15 19:24:54, danakj wrote: > > On Mon, ...
3 years, 7 months ago (2017-05-15 19:52:17 UTC) #24
Luis Héctor Chávez
lgtm with one more nit. https://codereview.chromium.org/2854543002/diff/100001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2854543002/diff/100001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode64 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:64: [](LayerSet layers, nit: s/layers/blocked_layers/
3 years, 7 months ago (2017-05-15 22:42:21 UTC) #25
Muyuan
https://codereview.chromium.org/2854543002/diff/100001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2854543002/diff/100001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode64 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:64: [](LayerSet layers, On 2017/05/15 22:42:21, Luis Héctor Chávez wrote: ...
3 years, 7 months ago (2017-05-16 00:58:59 UTC) #26
sky
https://codereview.chromium.org/2854543002/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2854543002/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode78 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:78: return owner->RecreateLayer(); Is it possible to use Clone in ...
3 years, 7 months ago (2017-05-17 14:48:30 UTC) #27
reveman
On the topic of taking snapshots of each individual window instead: I was suggesting this ...
3 years, 7 months ago (2017-05-17 16:58:14 UTC) #28
Muyuan
On 2017/05/17 16:58:14, reveman wrote: > On the topic of taking snapshots of each individual ...
3 years, 7 months ago (2017-05-17 18:35:57 UTC) #29
Muyuan
https://codereview.chromium.org/2854543002/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc File chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc (right): https://codereview.chromium.org/2854543002/diff/140001/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc#newcode78 chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc:78: return owner->RecreateLayer(); On 2017/05/17 14:48:30, sky wrote: > Is ...
3 years, 7 months ago (2017-05-17 19:25:35 UTC) #31
sky
LGTM with the following changes. https://codereview.chromium.org/2854543002/diff/160001/ui/wm/core/window_util_unittest.cc File ui/wm/core/window_util_unittest.cc (right): https://codereview.chromium.org/2854543002/diff/160001/ui/wm/core/window_util_unittest.cc#newcode77 ui/wm/core/window_util_unittest.cc:77: ASSERT_TRUE(!tree_empty); The not makes ...
3 years, 7 months ago (2017-05-18 02:50:15 UTC) #32
Muyuan
https://codereview.chromium.org/2854543002/diff/160001/ui/wm/core/window_util_unittest.cc File ui/wm/core/window_util_unittest.cc (right): https://codereview.chromium.org/2854543002/diff/160001/ui/wm/core/window_util_unittest.cc#newcode77 ui/wm/core/window_util_unittest.cc:77: ASSERT_TRUE(!tree_empty); On 2017/05/18 02:50:15, sky wrote: > The not ...
3 years, 7 months ago (2017-05-18 02:58:24 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854543002/180001
3 years, 7 months ago (2017-05-18 03:00:07 UTC) #36
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 05:12:43 UTC) #39
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/f134db33d0941e7d89ab862455bf...

Powered by Google App Engine
This is Rietveld 408576698