summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/intents/web_intent_picker_controller.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-06 12:43:20 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-06 12:43:20 +0000
commite232c994217b5d29a8cbdd98cdf81041a1db7c6f (patch)
tree0c295b7eb99a9964b9203329404ac5559596c51e /chrome/browser/ui/intents/web_intent_picker_controller.cc
parent01a0026b14dc7943c2000bcc5a21225a69ed519f (diff)
downloadchromium_src-e232c994217b5d29a8cbdd98cdf81041a1db7c6f.zip
chromium_src-e232c994217b5d29a8cbdd98cdf81041a1db7c6f.tar.gz
chromium_src-e232c994217b5d29a8cbdd98cdf81041a1db7c6f.tar.bz2
Remove TabContents from chrome::Navigate.
BUG=107201 TEST=no visible change Review URL: https://chromiumcodereview.appspot.com/11419235 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171472 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/intents/web_intent_picker_controller.cc')
-rw-r--r--chrome/browser/ui/intents/web_intent_picker_controller.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/ui/intents/web_intent_picker_controller.cc b/chrome/browser/ui/intents/web_intent_picker_controller.cc
index b6abe0ba..a555ff1 100644
--- a/chrome/browser/ui/intents/web_intent_picker_controller.cc
+++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc
@@ -330,21 +330,22 @@ void WebIntentPickerController::OnServiceChosen(
}
case webkit_glue::WebIntentServiceData::DISPOSITION_WINDOW: {
- TabContents* contents = chrome::TabContentsFactory(
+ content::WebContents* contents = content::WebContents::Create(
profile_,
tab_util::GetSiteInstanceForNewTab(profile_, url),
MSG_ROUTING_NONE, NULL);
+ WebIntentPickerController::CreateForWebContents(contents);
- // Let the controller for the target TabContents know that it is hosting a
+ // Let the controller for the target WebContents know that it is hosting a
// web intents service. Suppress if we're not showing the
// use-another-service button.
if (picker_model_->show_use_another_service()) {
- WebIntentPickerController::FromWebContents(contents->web_contents())->
+ WebIntentPickerController::FromWebContents(contents)->
SetWindowDispositionSource(web_contents_, intents_dispatcher_);
}
- intents_dispatcher_->DispatchIntent(contents->web_contents());
- service_tab_ = contents->web_contents();
+ intents_dispatcher_->DispatchIntent(contents);
+ service_tab_ = contents;
// This call performs all the tab strip manipulation, notifications, etc.
// Since we're passing in a target_contents, it assumes that we will