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

Unified Diff: chrome/browser/ui/gtk/web_intent_picker_gtk.cc

Issue 10868072: Make TabContents ctor private; poke hole for existing callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: all green 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
Index: chrome/browser/ui/gtk/web_intent_picker_gtk.cc
diff --git a/chrome/browser/ui/gtk/web_intent_picker_gtk.cc b/chrome/browser/ui/gtk/web_intent_picker_gtk.cc
index 000cd0e419c5ebcbfd99ab310ada28a30da62687..e6d579d3172bf66d7bda2752cd886c3be1420c2c 100644
--- a/chrome/browser/ui/gtk/web_intent_picker_gtk.cc
+++ b/chrome/browser/ui/gtk/web_intent_picker_gtk.cc
@@ -287,7 +287,8 @@ void WebIntentPickerGtk::OnInlineDisposition(const string16& title,
tab_contents_->profile(),
tab_util::GetSiteInstanceForNewTab(tab_contents_->profile(), url),
MSG_ROUTING_NONE, NULL);
- inline_disposition_tab_contents_.reset(new TabContents(web_contents));
+ inline_disposition_tab_contents_.reset(
+ TabContents::Factory::CreateTabContents(web_contents));
Browser* browser = browser::FindBrowserWithWebContents(
tab_contents_->web_contents());
inline_disposition_delegate_.reset(
« no previous file with comments | « chrome/browser/ui/gtk/web_dialog_gtk.cc ('k') | chrome/browser/ui/intents/web_intent_inline_disposition_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698