| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index b3cd35c5368a523522876c837f574c6d0ded3919..4489f2de987f3cfea27d5a943777a10c627fba67 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1654,10 +1654,10 @@ void Browser::WebIntentDispatch(
|
| // active web contents.
|
| web_contents = chrome::GetActiveWebContents(this);
|
| }
|
| - TabContents* tab_contents = TabContents::FromWebContents(web_contents);
|
| - tab_contents->web_intent_picker_controller()->SetIntentsDispatcher(
|
| - intents_dispatcher);
|
| - tab_contents->web_intent_picker_controller()->ShowDialog(
|
| + WebIntentPickerController* web_intent_picker_controller =
|
| + WebIntentPickerController::FromWebContents(web_contents);
|
| + web_intent_picker_controller->SetIntentsDispatcher(intents_dispatcher);
|
| + web_intent_picker_controller->ShowDialog(
|
| intents_dispatcher->GetIntent().action,
|
| intents_dispatcher->GetIntent().type);
|
| }
|
|
|