Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 1e5f142bdb90798c0f462eb3ebb4d86fa8bb195c..037b4c31bc5c3eac333b3c2fe1d32eedf36744a6 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -152,6 +152,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" |
@@ -3876,19 +3877,15 @@ 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()->ShowDialog(this, |
- intent.action, intent.type); |
+ tcw->web_intent_picker_controller()->SetIntentsHost(intents_host); |
+ tcw->web_intent_picker_controller()->ShowDialog( |
+ this, intents_host->GetIntent().action, intents_host->GetIntent().type); |
} |
void Browser::FindReply(TabContents* tab, |