| Index: chrome/browser/extensions/extension_host.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_host.cc (revision 146579)
|
| +++ chrome/browser/extensions/extension_host.cc (working copy)
|
| @@ -587,12 +587,9 @@
|
| }
|
| }
|
|
|
| - // Find a browser with a profile that matches the new tab. If none is found,
|
| - // NULL argument to NavigateParams is valid.
|
| Profile* profile =
|
| Profile::FromBrowserContext(new_contents->GetBrowserContext());
|
| - Browser* browser = browser::FindTabbedBrowser(
|
| - profile, false); // Match incognito exactly.
|
| + Browser* browser = browser::FindOrCreateTabbedBrowser(profile);
|
| TabContents* tab_contents = new TabContents(new_contents);
|
| chrome::NavigateParams params(browser, tab_contents);
|
|
|
| @@ -604,8 +601,6 @@
|
| if (disposition == NEW_POPUP)
|
| params.extension_app_id = extension_id_;
|
|
|
| - if (!browser)
|
| - params.profile = profile;
|
| params.disposition = disposition;
|
| params.window_bounds = initial_pos;
|
| params.window_action = chrome::NavigateParams::SHOW_WINDOW;
|
|
|