| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 5bbf329b01388e2cfc4b221025cfb56f44821074..fd5b48a34381c1b0afe1feea246f8d5041630505 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -151,6 +151,7 @@
|
| #include "content/browser/user_metrics.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/notification_details.h"
|
| +#include "content/public/browser/intents_host.h"
|
| #include "content/public/common/content_restriction.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/page_zoom.h"
|
| @@ -3878,19 +3879,16 @@ void Browser::RegisterIntentHandler(TabContents* tab,
|
| }
|
|
|
| void Browser::WebIntentDispatch(TabContents* tab,
|
| - int routing_id,
|
| - const webkit_glue::WebIntentData& intent,
|
| - int intent_id) {
|
| + content::IntentsHost* intents_host) {
|
| if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableWebIntents))
|
| return;
|
|
|
| TabContentsWrapper* tcw =
|
| TabContentsWrapper::GetCurrentWrapperForContents(tab);
|
| - tcw->web_intent_picker_controller()->SetIntent(routing_id,
|
| - intent,
|
| - intent_id);
|
| + tcw->web_intent_picker_controller()->SetIntentsHost(intents_host);
|
| tcw->web_intent_picker_controller()->ShowDialog(this,
|
| - intent.action, intent.type);
|
| + intents_host->intent().action,
|
| + intents_host->intent().type);
|
| }
|
|
|
| void Browser::FindReply(TabContents* tab,
|
|
|