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

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

Issue 11741014: Move 'intents' parsing out of Extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed special_storage_policy unittest Created 7 years, 11 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 314f6c852276e72731547800f4a8ac29ae510b8e..5ed96ca0b908abf012f7f63206216bfc90966814 100644
--- a/chrome/browser/intents/web_intents_registry.cc
+++ b/chrome/browser/intents/web_intents_registry.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_set.h"
+#include "chrome/common/extensions/web_intents_handler.h"
#include "googleurl/src/gurl.h"
#include "net/base/mime_util.h"
@@ -55,7 +56,8 @@ bool WebIntentsTypesMatch(const string16& type1, const string16& type2) {
void AddMatchingServicesForExtension(const Extension& extension,
const string16& action,
IntentServiceList* matching_services) {
- const IntentServiceList& services = extension.intents_services();
+ const IntentServiceList& services =
+ extensions::WebIntentsInfo::GetIntentsServices(&extension);
for (IntentServiceList::const_iterator i = services.begin();
i != services.end(); ++i) {
if (action.empty() || action == i->action)
« no previous file with comments | « chrome/browser/extensions/web_intents_parser.cc ('k') | chrome/browser/intents/web_intents_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698