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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc

Issue 1109393011: Pull back windows to the original user desktop when clicking on the correspond window list bubble i… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address pkasting@'s comment. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc
index 26a75a8b145797767ae31c043b036c78eae39ace..be2cbe0df6f36e646ddf3f293870823f04407864 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc
@@ -6,6 +6,7 @@
#include "ash/wm/window_util.h"
#include "chrome/browser/chrome_notification_types.h"
+#include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
@@ -42,6 +43,10 @@ void ChromeLauncherAppMenuItemBrowser::Execute(int event_flags) {
TabStripModel* tab_strip = browser_->tab_strip_model();
tab_strip->CloseAllTabs();
} else {
+ // In ChromeOS multiprofile scenario we might need to teleport the window
+ // back to the current user desktop.
+ multi_user_util::MoveWindowToCurrentDesktop(
+ browser_->window()->GetNativeWindow());
browser_->window()->Show();
ash::wm::ActivateWindow(browser_->window()->GetNativeWindow());
}
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698