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

Issue 2618333004: Add ShelfWindowWatcher support for pre-existing windows. (Closed)

Created:
3 years, 11 months ago by msw
Modified:
3 years, 11 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ShelfWindowWatcher support for pre-existing windows. Call OnDisplayAdded from ctor; consolidate code. Call OnUserWindowAdded for each pre-existing window. (catches windows constructed earlier than the shelf [window watcher]) Add ShelfWindowWatcherSessionStartTest.PreExistingWindow. BUG=679088 TEST="chrome --mash" shows a QuickLaunch shelf item. R=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2618333004 Cr-Commit-Position: refs/heads/master@{#442678} Committed: https://chromium.googlesource.com/chromium/src/+/24ccd0688d195440d8c37f0f256d9a379a25db25

Patch Set 1 #

Patch Set 2 : Cleanup; add a test. #

Total comments: 4

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -13 lines) Patch
M ash/common/shelf/shelf_window_watcher.cc View 1 2 chunks +12 lines, -11 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_unittest.cc View 1 2 3 chunks +25 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
msw
Hey James, please take a look; thanks! The test passed before *and* after your revert: ...
3 years, 11 months ago (2017-01-10 19:20:39 UTC) #12
James Cook
LGTM. Thanks for writing a test. https://codereview.chromium.org/2618333004/diff/20001/ash/common/shelf/shelf_window_watcher_unittest.cc File ash/common/shelf/shelf_window_watcher_unittest.cc (right): https://codereview.chromium.org/2618333004/diff/20001/ash/common/shelf/shelf_window_watcher_unittest.cc#newcode9 ash/common/shelf/shelf_window_watcher_unittest.cc:9: #include "ash/common/test/test_session_state_delegate.h" nit: ...
3 years, 11 months ago (2017-01-10 19:51:15 UTC) #13
msw
Comments addressed, take another look if interested; thanks! https://codereview.chromium.org/2618333004/diff/20001/ash/common/shelf/shelf_window_watcher_unittest.cc File ash/common/shelf/shelf_window_watcher_unittest.cc (right): https://codereview.chromium.org/2618333004/diff/20001/ash/common/shelf/shelf_window_watcher_unittest.cc#newcode9 ash/common/shelf/shelf_window_watcher_unittest.cc:9: #include ...
3 years, 11 months ago (2017-01-10 20:06:30 UTC) #14
James Cook
still lgtm
3 years, 11 months ago (2017-01-10 20:07:40 UTC) #17
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/2618333004/40001
3 years, 11 months ago (2017-01-10 20:08:11 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 20:43:13 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/24ccd0688d195440d8c37f0f256d...

Powered by Google App Engine
This is Rietveld 408576698