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

Unified Diff: chrome/browser/intents/web_intents_registry.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/web_intents_registry.cc
diff --git a/chrome/browser/intents/web_intents_registry.cc b/chrome/browser/intents/web_intents_registry.cc
index 0e59ebff0aec13bc3713c7f478da46450d553a31..700c2ca66f7c836ea29d4f2505583d6c359bf9a0 100644
--- a/chrome/browser/intents/web_intents_registry.cc
+++ b/chrome/browser/intents/web_intents_registry.cc
@@ -48,8 +48,8 @@ void WebIntentsRegistry::OnWebDataServiceRequestDone(
queries_.erase(it);
// TODO(groby): Filtering goes here.
- std::vector<WebIntentData> intents = static_cast<
- const WDResult<std::vector<WebIntentData> >*>(result)->GetValue();
+ std::vector<WebIntentServiceData> intents = static_cast<
+ const WDResult<std::vector<WebIntentServiceData> >*>(result)->GetValue();
query->consumer_->OnIntentsQueryDone(query->query_id_, intents);
delete query;
@@ -84,12 +84,14 @@ WebIntentsRegistry::QueryID WebIntentsRegistry::GetAllIntentProviders(
return query->query_id_;
}
-void WebIntentsRegistry::RegisterIntentProvider(const WebIntentData& intent) {
+void WebIntentsRegistry::RegisterIntentProvider(
+ const WebIntentServiceData& service) {
DCHECK(wds_.get());
- wds_->AddWebIntent(intent);
+ wds_->AddWebIntent(service);
}
-void WebIntentsRegistry::UnregisterIntentProvider(const WebIntentData& intent) {
+void WebIntentsRegistry::UnregisterIntentProvider(
+ const WebIntentServiceData& service) {
DCHECK(wds_.get());
- wds_->RemoveWebIntent(intent);
+ wds_->RemoveWebIntent(service);
}
« no previous file with comments | « chrome/browser/intents/web_intents_registry.h ('k') | chrome/browser/intents/web_intents_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698