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

Issue 2870253006: Fix WindowTreeHostManager::GetPrimaryRootWindow. (Closed)

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

Description

Fix WindowTreeHostManager::GetPrimaryRootWindow When the last display is removed, the |primary_display_id| is set to invalid. In this case, we should return root window of the |primary_tree_host_for_replace_|. BUG=718232 Test=tested on local device Review-Url: https://codereview.chromium.org/2870253006 Cr-Commit-Position: refs/heads/master@{#471172} Committed: https://chromium.googlesource.com/chromium/src/+/e8ce0ec0131153014f66ef73920527c25c0589d8

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix WindowTreeHostManager::GetPrimaryRootWindow #

Total comments: 2

Patch Set 3 : Reset primary_tree_host_for_replace_. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M ash/display/window_tree_host_manager.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
wutao
Hi Oshima, This is a potential fix suggested by varkha@. Tested on local device. It ...
3 years, 7 months ago (2017-05-10 19:17:16 UTC) #2
varkha
lgtm with a nit and a tangential comment. Thanks for looking into this! https://codereview.chromium.org/2870253006/diff/1/ash/shell.cc File ...
3 years, 7 months ago (2017-05-10 22:23:59 UTC) #7
varkha
I wonder if there is a chance to add a test that tries removing a ...
3 years, 7 months ago (2017-05-10 22:25:21 UTC) #8
wutao
On 2017/05/10 22:25:21, varkha wrote: > I wonder if there is a chance to add ...
3 years, 7 months ago (2017-05-10 22:41:58 UTC) #9
oshima
Can you hold a sec? I think there is a better way.
3 years, 7 months ago (2017-05-10 22:51:05 UTC) #10
oshima
On 2017/05/10 22:51:05, oshima wrote: > Can you hold a sec? I think there is ...
3 years, 7 months ago (2017-05-11 21:28:45 UTC) #11
wutao
Hi Oshima, It passed all the tests. ptal. Thanks. Tao
3 years, 7 months ago (2017-05-11 23:42:23 UTC) #17
oshima
one more change, then lgtm https://codereview.chromium.org/2870253006/diff/20001/ash/display/window_tree_host_manager.cc File ash/display/window_tree_host_manager.cc (right): https://codereview.chromium.org/2870253006/diff/20001/ash/display/window_tree_host_manager.cc#newcode639 ash/display/window_tree_host_manager.cc:639: controller->Shutdown(); can you reset ...
3 years, 7 months ago (2017-05-12 00:19:21 UTC) #18
wutao
Hi Oshima, ptal. Thank you, Tao https://codereview.chromium.org/2870253006/diff/20001/ash/display/window_tree_host_manager.cc File ash/display/window_tree_host_manager.cc (right): https://codereview.chromium.org/2870253006/diff/20001/ash/display/window_tree_host_manager.cc#newcode639 ash/display/window_tree_host_manager.cc:639: controller->Shutdown(); On 2017/05/12 ...
3 years, 7 months ago (2017-05-12 00:43:57 UTC) #19
oshima
slgtm
3 years, 7 months ago (2017-05-12 00:48:45 UTC) #22
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/2870253006/40001
3 years, 7 months ago (2017-05-12 01:42:05 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 01:49:26 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e8ce0ec0131153014f66ef739205...

Powered by Google App Engine
This is Rietveld 408576698