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

Unified Diff: chrome/browser/ui/panels/panel_host.cc

Issue 10824358: [Panels] Remove use of banned FindOrCreateTabbedBrowser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_host.cc
diff --git a/chrome/browser/ui/panels/panel_host.cc b/chrome/browser/ui/panels/panel_host.cc
index cde36c52692644c30a78f19ac205d1482ba41c78..238bba34c4bcc5ea42f8d12566cf54805cbe8a40 100644
--- a/chrome/browser/ui/panels/panel_host.cc
+++ b/chrome/browser/ui/panels/panel_host.cc
@@ -88,9 +88,9 @@ content::WebContents* PanelHost::OpenURLFromTab(
return NULL;
// Force all links to open in a new tab.
- chrome::NavigateParams navigate_params(
- browser::FindOrCreateTabbedBrowser(profile_),
- params.url, params.transition);
+ chrome::NavigateParams navigate_params(profile_,
+ params.url,
+ params.transition);
navigate_params.disposition = params.disposition == NEW_BACKGROUND_TAB ?
params.disposition : NEW_FOREGROUND_TAB;
chrome::Navigate(&navigate_params);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698