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

Unified Diff: chrome/browser/ui/extensions/application_launch.cc

Issue 2894743002: Make launching apps from shelf more intuitive (Closed)
Patch Set: Replace root window with display id in app launch params. Created 3 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
Index: chrome/browser/ui/extensions/application_launch.cc
diff --git a/chrome/browser/ui/extensions/application_launch.cc b/chrome/browser/ui/extensions/application_launch.cc
index ff846ea99a9f46b6db66836a3e96af738f7bedb0..f5e75a44d2b94b3faf92cf053782521fcffab112 100644
--- a/chrome/browser/ui/extensions/application_launch.cc
+++ b/chrome/browser/ui/extensions/application_launch.cc
@@ -228,7 +228,8 @@ WebContents* OpenApplicationTab(const AppLaunchParams& launch_params,
Profile* const profile = launch_params.profile;
WindowOpenDisposition disposition = launch_params.disposition;
- Browser* browser = chrome::FindTabbedBrowser(profile, false);
+ Browser* browser = chrome::FindTabbedBrowserOnDisplay(
+ profile, false, launch_params.display_id);
WebContents* contents = NULL;
if (!browser) {
// No browser for this profile, need to open a new one.

Powered by Google App Engine
This is Rietveld 408576698