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

Unified Diff: chrome/browser/ui/browser.cc

Issue 8666013: Add a public content/ interface for intents. Use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For try servers. Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/intents/web_intent_picker_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index d09cec9d0257750ee5aaaec1e1f9dfd3df368b87..330ddabc379bab51d9cbfbc1a0bcaa548fbe29ed 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"
@@ -3877,19 +3878,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,
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/intents/web_intent_picker_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698