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

Issue 11644012: Temporarily remember the primary root window while replacing the display. (Closed)

Created:
8 years ago by oshima
Modified:
8 years ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Temporarily remember the primary root window while replacing the display. |root_windows_| map becomes empty while replacing display. This CL remembers the primary root window temporarily and use it when the display is added. This is a bit ugly but less risky to merge to 25 branch. For 26, I'll refactor and add "replace" protocol to DisplayObserver. BUG=166673 TEST=covered by test Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174008

Patch Set 1 #

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -8 lines) Patch
M ash/display/display_controller.h View 1 1 chunk +4 lines, -0 lines 3 comments Download
M ash/display/display_controller.cc View 1 3 chunks +25 lines, -8 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
oshima
8 years ago (2012-12-19 15:52:52 UTC) #1
Daniel Erat
https://codereview.chromium.org/11644012/diff/2015/ash/display/display_controller.h File ash/display/display_controller.h (right): https://codereview.chromium.org/11644012/diff/2015/ash/display/display_controller.h#newcode186 ash/display/display_controller.h:186: aura::RootWindow* primary_root_window_for_replace_; can you store this in a scoped_ptr ...
8 years ago (2012-12-19 16:49:13 UTC) #2
oshima
https://codereview.chromium.org/11644012/diff/2015/ash/display/display_controller.h File ash/display/display_controller.h (right): https://codereview.chromium.org/11644012/diff/2015/ash/display/display_controller.h#newcode186 ash/display/display_controller.h:186: aura::RootWindow* primary_root_window_for_replace_; On 2012/12/19 16:49:13, Daniel Erat wrote: > ...
8 years ago (2012-12-19 16:59:51 UTC) #3
Daniel Erat
https://codereview.chromium.org/11644012/diff/2015/ash/display/display_controller.h File ash/display/display_controller.h (right): https://codereview.chromium.org/11644012/diff/2015/ash/display/display_controller.h#newcode186 ash/display/display_controller.h:186: aura::RootWindow* primary_root_window_for_replace_; On 2012/12/19 16:59:51, oshima wrote: > On ...
8 years ago (2012-12-19 17:02:26 UTC) #4
oshima
On 2012/12/19 17:02:26, Daniel Erat wrote: > https://codereview.chromium.org/11644012/diff/2015/ash/display/display_controller.h > File ash/display/display_controller.h (right): > > https://codereview.chromium.org/11644012/diff/2015/ash/display/display_controller.h#newcode186 ...
8 years ago (2012-12-19 17:23:03 UTC) #5
Daniel Erat
Thanks for the explanation. LGTM.
8 years ago (2012-12-19 17:29:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11644012/2015
8 years ago (2012-12-19 18:00:49 UTC) #7
commit-bot: I haz the power
8 years ago (2012-12-19 22:05:03 UTC) #8
Message was sent while issue was closed.
Change committed as 174008

Powered by Google App Engine
This is Rietveld 408576698