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

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

Issue 11348344: Remove last usages of FindTabbedBrowserDeprecated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dear Greg. Moar context. Created 8 years 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 | « chrome/browser/ui/browser_finder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45d5b7970950b6f2dc303196b2bef2e507f6cd5d..353b4ec4003c75f44440bc4e70cfcb0f9d391cc8 100644
--- a/chrome/browser/ui/extensions/application_launch.cc
+++ b/chrome/browser/ui/extensions/application_launch.cc
@@ -94,6 +94,7 @@ WebContents* OpenApplicationWindow(
Browser::CreateParams params(type, profile);
params.app_name = app_name;
params.initial_bounds = window_bounds;
+ params.host_desktop_type = chrome::GetActiveDesktop();
#if defined(USE_ASH)
if (extension &&
@@ -143,11 +144,15 @@ WebContents* OpenApplicationTab(Profile* profile,
const Extension* extension,
const GURL& override_url,
WindowOpenDisposition disposition) {
- Browser* browser = browser::FindTabbedBrowserDeprecated(profile, false);
+ Browser* browser = browser::FindTabbedBrowser(profile,
+ false,
+ chrome::GetActiveDesktop());
WebContents* contents = NULL;
if (!browser) {
// No browser for this profile, need to open a new one.
- browser = new Browser(Browser::CreateParams(profile));
+ browser = new Browser(Browser::CreateParams(Browser::TYPE_TABBED,
+ profile,
+ chrome::GetActiveDesktop()));
browser->window()->Show();
// There's no current tab in this browser window, so add a new one.
disposition = NEW_FOREGROUND_TAB;
« no previous file with comments | « chrome/browser/ui/browser_finder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698