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

Unified Diff: chrome/browser/intents/web_intents_registry.cc

Issue 8417043: Add webkit_glue namespace. Improve some variable and test names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 4771be5f05470525ad99dce5429b29433276be3a..3ea0048a5bc77671c76bd9bbd1aa9f8e7de339f3 100644
--- a/chrome/browser/intents/web_intents_registry.cc
+++ b/chrome/browser/intents/web_intents_registry.cc
@@ -5,6 +5,8 @@
#include "chrome/browser/intents/web_intents_registry.h"
#include "chrome/browser/webdata/web_data_service.h"
+using webkit_glue::WebIntentServiceData;
+
// Internal object representing all data associated with a single query.
struct WebIntentsRegistry::IntentsQuery {
// Unique query identifier.
@@ -55,8 +57,8 @@ void WebIntentsRegistry::OnWebDataServiceRequestDone(
queries_.erase(it);
// TODO(groby): Filtering goes here.
- IntentList matching_intents = static_cast<
- const WDResult<IntentList>*>(result)->GetValue();
+ IntentServiceList matching_intents = static_cast<
+ const WDResult<IntentServiceList>*>(result)->GetValue();
// Loop over all intents in all extensions, collect ones matching the query.
if (extension_service_) {
@@ -64,8 +66,8 @@ void WebIntentsRegistry::OnWebDataServiceRequestDone(
if (extensions) {
for (ExtensionList::const_iterator i(extensions->begin());
i != extensions->end(); ++i) {
- const IntentList& intents((*i)->intents());
- for (IntentList::const_iterator j(intents.begin());
+ const IntentServiceList& intents((*i)->intents_services());
+ for (IntentServiceList::const_iterator j(intents.begin());
j != intents.end(); ++j) {
if (query->action_.empty() || query->action_ == j->action)
matching_intents.push_back(*j);

Powered by Google App Engine
This is Rietveld 408576698