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

Issue 2644733004: Chrome OS: New window on teleported browser window should show on current desktop (Closed)

Created:
3 years, 11 months 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

Chrome OS: New window on teleported browser window should show on current desktop Changes: Regression comes from: https://codereview.chromium.org/2434463004, which is to separate ash/ from chrome/. (1) set_show_for_user in AddBrowserWindow (2) regression happens because of isProcessingUserEvent breaks. Found that we don't actually need this, so removing it. (3) Fix test in MultiProfileMultiBrowserShelfLayoutChromeLauncherControllerImplTest BUG=608840 TEST=emulator test saw comment #8 bug fixed in 608840.

Patch Set 1 #

Patch Set 2 : remove unused include #

Total comments: 1

Patch Set 3 : add test coverage #

Total comments: 8

Patch Set 4 : possible fix? #

Patch Set 5 : delete isProcessingUserEvent #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -65 lines) Patch
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 1 chunk +2 lines, -7 lines 1 comment Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc View 1 2 3 4 4 chunks +8 lines, -58 lines 3 comments Download

Messages

Total messages: 37 (25 generated)
Qiang(Joe) Xu
Hi Stefan, please take a look first on my changes, if it looks good to ...
3 years, 11 months ago (2017-01-19 21:51:46 UTC) #11
Qiang(Joe) Xu
https://codereview.chromium.org/2644733004/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc (left): https://codereview.chromium.org/2644733004/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc#oldcode2835 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc:2835: CreateBrowserAndTabWithProfile(profile2, user2, "http://test2")); This is to create a visiting(teleported) ...
3 years, 11 months ago (2017-01-19 21:54:33 UTC) #13
Qiang(Joe) Xu
Hi all, ptal, thanks!
3 years, 11 months ago (2017-01-20 00:27:13 UTC) #18
sky
https://codereview.chromium.org/2644733004/diff/60001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/2644733004/diff/60001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc#newcode1564 chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc:1564: const_cast<user_manager::User*>(user), profile); The const_casts here seem wrong. Doesn't SetUserToProfileMappingForTesting() ...
3 years, 11 months ago (2017-01-20 01:03:08 UTC) #19
oshima
https://codereview.chromium.org/2644733004/diff/60001/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/2644733004/diff/60001/chrome/browser/ui/browser_navigator.cc#newcode443 chrome/browser/ui/browser_navigator.cc:443: multi_user_util::MoveWindowToCurrentDesktop(new_window); On 2017/01/20 01:03:08, sky wrote: > This seems ...
3 years, 11 months ago (2017-01-24 21:22:59 UTC) #20
Mr4D (OOO till 08-26)
https://codereview.chromium.org/2644733004/diff/60001/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/2644733004/diff/60001/chrome/browser/ui/browser_navigator.cc#newcode443 chrome/browser/ui/browser_navigator.cc:443: multi_user_util::MoveWindowToCurrentDesktop(new_window); If I remember it correctly there was the ...
3 years, 11 months ago (2017-01-25 18:08:45 UTC) #21
Qiang(Joe) Xu
Hi all, It turns out after https://codereview.chromium.org/2434463004. New browser window is created at browser's profile's ...
3 years, 10 months ago (2017-02-03 21:22:43 UTC) #25
sky
On 2017/02/03 21:22:43, Qiang(Joe) Xu wrote: > Hi all, It turns out after https://codereview.chromium.org/2434463004. New ...
3 years, 10 months ago (2017-02-04 00:04:25 UTC) #28
sky
On 2017/02/04 00:04:25, sky wrote: > On 2017/02/03 21:22:43, Qiang(Joe) Xu wrote: > > Hi ...
3 years, 10 months ago (2017-02-04 00:05:53 UTC) #29
sky
Also, code in c/b/ui should not refer to platform specific ui code.
3 years, 10 months ago (2017-02-04 00:06:29 UTC) #30
Qiang(Joe) Xu
Hi all, please take a look, thanks! Regression is because https://cs.chromium.org/chromium/src/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc?q=isprocessinguser&l=96 returns false now. I ...
3 years, 10 months ago (2017-02-08 00:57:36 UTC) #32
oshima
3 years, 10 months ago (2017-02-08 01:29:32 UTC) #35
https://codereview.chromium.org/2644733004/diff/100001/chrome/browser/ui/ash/...
File chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc
(right):

https://codereview.chromium.org/2644733004/diff/100001/chrome/browser/ui/ash/...
chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc:598:
window_to_entry_[native_window]->set_show_for_user(current_account_id_);
Won't this always open the window in the current active? That may not be the
right desktop if the window is opened after the desktop has switched for
example. 

I think you need to tell MUWM on which account's desktop it should open in
ChromeNewWindowClient.

Powered by Google App Engine
This is Rietveld 408576698