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

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

Issue 7930002: Rename WebIntentData for backend storage to WebIntentServiceData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix class/struct decl Created 9 years, 3 months 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 a2e209179a570aebc96754d61bef0da0ce2edd20..5da09b9854e45c8c95cf536440e1577bdc1383b0 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -156,6 +156,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/point.h"
#include "webkit/glue/webkit_glue.h"
+#include "webkit/glue/web_intent_data.h"
#include "webkit/glue/window_open_disposition.h"
#if defined(OS_WIN)
@@ -2485,13 +2486,13 @@ void Browser::RegisterIntentHandlerHelper(TabContents* tab,
service_url = url.Resolve(href);
}
- WebIntentData intent;
- intent.service_url = service_url;
- intent.action = action;
- intent.type = type;
- intent.title = title;
+ WebIntentServiceData service;
+ service.service_url = service_url;
+ service.action = action;
+ service.type = type;
+ service.title = title;
tcw->infobar_tab_helper()->AddInfoBar(
- new RegisterIntentHandlerInfoBarDelegate(tab, intent));
+ new RegisterIntentHandlerInfoBarDelegate(tab, service));
}
// static
@@ -3834,9 +3835,7 @@ void Browser::RegisterIntentHandler(TabContents* tab,
void Browser::WebIntentDispatch(TabContents* tab,
int routing_id,
- const string16& action,
- const string16& type,
- const string16& data,
+ const webkit_glue::WebIntentData& intent,
int intent_id) {
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableWebIntents))
return;
@@ -3845,7 +3844,7 @@ void Browser::WebIntentDispatch(TabContents* tab,
TabContentsWrapper::GetCurrentWrapperForContents(tab);
tcw->web_intent_picker_controller()->ShowDialog(window()->GetNativeHandle(),
- action, type);
+ intent.action, intent.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