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

Unified Diff: chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm

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/cocoa/web_intent_picker_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm b/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm
index 3fbcb3a5aa0cdbd688c5baddf0777fbf8effb9ac..acf53295e2946c07cf6f92f34e7061fa9b3f8b42 100644
--- a/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm
+++ b/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm
@@ -162,7 +162,8 @@ void WebIntentPickerCocoa::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/cocoa/web_dialog_window_controller.mm ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698