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

Issue 2599833003: ChromeOS: Fix NewWindow's bug with browser on other user's desktop and no browser on current's (Closed)

Created:
4 years ago by Qiang(Joe) Xu
Modified:
3 years, 10 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ChromeOS: Fix NewWindow's bug with browser on other user's desktop and no browser on current's Changes: Regression comes from https://codereview.chromium.org/2434463004. The CL introduces two regressions, one for crbug.com/675265, one for crbug.com/608840. For crbug.com/675265, regression comes from changing chrome::FindBrowserWithWindow(ash::wm::GetActiveWindow()) to BrowserList::GetInstance()->GetLastActive(). ash::wm::GetActiveWindow() makes sure that GetActiveWindow from primary root window, however, it has dependency on ash/. This CL is to fix this. We want to get browser that has active window associated with it, return nullptr if that doesn't exist. BUG=675265 TEST=emulator tests see bug 675265 fixed; a test coverage is added: MultiUserWindowManagerChromeOSTest.GetActiveBrowserTest Review-Url: https://codereview.chromium.org/2599833003 Cr-Commit-Position: refs/heads/master@{#447830} Committed: https://chromium.googlesource.com/chromium/src/+/ffd4c0625973c223ef7dbcab19caf00a7729f399

Patch Set 1 #

Patch Set 2 : GetActiveBrowserOnActiveDesktop #

Patch Set 3 : FindLastActive in browser_finder #

Patch Set 4 : get active browser with active browser window #

Total comments: 2

Patch Set 5 : add test coverage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -6 lines) Patch
M chrome/browser/ui/ash/chrome_new_window_client.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_new_window_client.cc View 1 2 3 4 6 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 3 4 3 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (29 generated)
Qiang(Joe) Xu
Hi Steven, ptal, thanks!
4 years ago (2016-12-23 02:55:39 UTC) #5
stevenjb
This was an intentional change: https://codereview.chromium.org/1954853002 -> xdai@, oshima@ who made/reviewed that change. blame is ...
3 years, 12 months ago (2016-12-27 18:03:43 UTC) #9
xdai1
With your change in place, does it affect the behavior of the original issue 608840?
3 years, 11 months ago (2016-12-28 18:03:50 UTC) #10
oshima
On 2016/12/28 18:03:50, xdai1 wrote: > With your change in place, does it affect the ...
3 years, 11 months ago (2017-01-05 20:57:51 UTC) #11
Qiang(Joe) Xu
On 2017/01/05 20:57:51, oshima wrote: > On 2016/12/28 18:03:50, xdai1 wrote: > > With your ...
3 years, 11 months ago (2017-01-20 00:30:47 UTC) #12
Qiang(Joe) Xu
Hi all, ptal, thanks! I updated the description, please have a check. Even I restored ...
3 years, 11 months ago (2017-01-27 00:10:55 UTC) #17
Qiang(Joe) Xu
Hi all, ptal, thanks!
3 years, 10 months ago (2017-01-28 00:23:16 UTC) #26
oshima
thanks, can you add unit test?
3 years, 10 months ago (2017-01-30 18:08:18 UTC) #30
oshima
https://codereview.chromium.org/2599833003/diff/80001/chrome/browser/ui/ash/chrome_new_window_client.cc File chrome/browser/ui/ash/chrome_new_window_client.cc (right): https://codereview.chromium.org/2599833003/diff/80001/chrome/browser/ui/ash/chrome_new_window_client.cc#newcode51 chrome/browser/ui/ash/chrome_new_window_client.cc:51: aura::client::ActivationClient* client = nit: include activation_client.h
3 years, 10 months ago (2017-01-30 18:09:24 UTC) #31
Qiang(Joe) Xu
+Stefan in reviewers, Besides the email I sent last Friday, I find this is a ...
3 years, 10 months ago (2017-01-31 06:55:55 UTC) #33
oshima
On 2017/01/31 06:55:55, Qiang(Joe) Xu wrote: > +Stefan in reviewers, > > Besides the email ...
3 years, 10 months ago (2017-01-31 17:55:53 UTC) #34
Qiang(Joe) Xu
Hi all, test coverage is added, ptal, thanks!
3 years, 10 months ago (2017-02-02 03:41:03 UTC) #38
oshima
lgtm thanks!
3 years, 10 months ago (2017-02-02 16:35:30 UTC) #39
xdai1
lgtm
3 years, 10 months ago (2017-02-02 18:18:27 UTC) #40
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/2599833003/140001
3 years, 10 months ago (2017-02-02 19:53:19 UTC) #42
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 20:24:45 UTC) #45
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/ffd4c0625973c223ef7dbcab19ca...

Powered by Google App Engine
This is Rietveld 408576698