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

Issue 2185743002: Remove ash::ScopedObserverWithDuplicatedSources (Closed)

Created:
4 years, 4 months ago by James Cook
Modified:
4 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove ash::ScopedObserverWithDuplicatedSources It was added in http://crrev.com/21185004 to allow observation of multiple ActivationClients in ash. However, ash only has a single ActivationClient, so just observe that directly. This eliminates ash::WindowTreeHostManager access in ShelfWindowWatcher, which will simplify its conversion to wm types. It also simplifies BrowserStatusMonitor, which no longer needs to observe root windows or displays just to add activation client observers. BUG=629257 TEST=ash_unittests, chrome unit_tests, manually activate windows and tabs in ash and verify shelf light-bar appearance changes correctly Committed: https://crrev.com/04f84072e56506d52835408c0862a80865bde7b9 Cr-Commit-Position: refs/heads/master@{#407919}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -251 lines) Patch
M ash/ash.gyp View 2 chunks +0 lines, -2 lines 0 comments Download
D ash/shelf/scoped_observer_with_duplicated_sources.h View 1 chunk +0 lines, -69 lines 0 comments Download
D ash/shelf/scoped_observer_with_duplicated_sources_unittest.cc View 1 chunk +0 lines, -75 lines 0 comments Download
M ash/shelf/shelf_window_watcher.h View 2 chunks +0 lines, -7 lines 0 comments Download
M ash/shelf/shelf_window_watcher.cc View 4 chunks +3 lines, -10 lines 1 comment Download
M chrome/browser/ui/ash/launcher/browser_status_monitor.h View 5 chunks +0 lines, -27 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_status_monitor.cc View 5 chunks +2 lines, -61 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
James Cook
sky, please take a look. There's more cleanup to do in ShelfWindowWatcher; I'm working on ...
4 years, 4 months ago (2016-07-26 17:48:31 UTC) #2
sky
Nice! LGTM
4 years, 4 months ago (2016-07-26 21:03:13 UTC) #7
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/2185743002/1
4 years, 4 months ago (2016-07-26 21:21:30 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-26 21:25:28 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 21:28:02 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/04f84072e56506d52835408c0862a80865bde7b9
Cr-Commit-Position: refs/heads/master@{#407919}

Powered by Google App Engine
This is Rietveld 408576698