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

Unified Diff: chrome/browser/intents/register_intent_handler_infobar_delegate.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
Index: chrome/browser/intents/register_intent_handler_infobar_delegate.cc
diff --git a/chrome/browser/intents/register_intent_handler_infobar_delegate.cc b/chrome/browser/intents/register_intent_handler_infobar_delegate.cc
index cac9b915034d9defab13bd7cf25a52f5f7e1a822..58206dc4891b7d3f77a7f878f2a1dcf3d0d9b8a1 100644
--- a/chrome/browser/intents/register_intent_handler_infobar_delegate.cc
+++ b/chrome/browser/intents/register_intent_handler_infobar_delegate.cc
@@ -14,11 +14,11 @@
#include "ui/base/l10n/l10n_util.h"
RegisterIntentHandlerInfoBarDelegate::RegisterIntentHandlerInfoBarDelegate(
- TabContents* tab_contents, const WebIntentData& intent)
+ TabContents* tab_contents, const WebIntentServiceData& service)
: ConfirmInfoBarDelegate(tab_contents),
tab_contents_(tab_contents),
profile_(Profile::FromBrowserContext(tab_contents->browser_context())),
- intent_(intent) {
+ service_(service) {
}
InfoBarDelegate::Type
@@ -29,15 +29,15 @@ InfoBarDelegate::Type
string16 RegisterIntentHandlerInfoBarDelegate::GetMessageText() const {
return l10n_util::GetStringFUTF16(
IDS_REGISTER_INTENT_HANDLER_CONFIRM,
- intent_.title,
- UTF8ToUTF16(intent_.service_url.host()));
+ service_.title,
+ UTF8ToUTF16(service_.service_url.host()));
}
string16 RegisterIntentHandlerInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const {
if (button == BUTTON_OK) {
return l10n_util::GetStringFUTF16(IDS_REGISTER_INTENT_HANDLER_ACCEPT,
- UTF8ToUTF16(intent_.service_url.host()));
+ UTF8ToUTF16(service_.service_url.host()));
}
DCHECK(button == BUTTON_CANCEL);
@@ -47,7 +47,7 @@ string16 RegisterIntentHandlerInfoBarDelegate::GetButtonLabel(
bool RegisterIntentHandlerInfoBarDelegate::Accept() {
WebIntentsRegistry* registry =
WebIntentsRegistryFactory::GetForProfile(profile_);
- registry->RegisterIntentProvider(intent_);
+ registry->RegisterIntentProvider(service_);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698