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

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

Issue 2894743002: Make launching apps from shelf more intuitive (Closed)
Patch Set: This patch set has many platform related issue 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..bec79eed2bb3836b55ea480a986d1312b8c247eb 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::FindTabbedBrowserInRootWindow(
+ profile, false, launch_params.root_window);
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