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

Unified Diff: chrome/browser/extensions/extension_special_storage_policy.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/extensions/extension_special_storage_policy.cc
diff --git a/chrome/browser/extensions/extension_special_storage_policy.cc b/chrome/browser/extensions/extension_special_storage_policy.cc
index 8f035eaac16431fb1747538beba2023084a0321a..bc998952c20fc3428dfc58c9a32baa1e933463db 100644
--- a/chrome/browser/extensions/extension_special_storage_policy.cc
+++ b/chrome/browser/extensions/extension_special_storage_policy.cc
@@ -13,6 +13,7 @@
#include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_types.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/extensions/web_intents_handler.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/common/constants.h"
@@ -28,8 +29,9 @@ bool ExtensionSupportsIntentAction(
const extensions::Extension* extension,
const std::string& action) {
for (std::vector<webkit_glue::WebIntentServiceData>::const_iterator i =
- extension->intents_services().begin();
- i != extension->intents_services().end(); ++i) {
+ extensions::WebIntentsInfo::GetIntentsServices(extension).begin();
+ i != extensions::WebIntentsInfo::GetIntentsServices(extension).end();
+ ++i) {
if (UTF16ToUTF8(i->action) == action)
return true;
}

Powered by Google App Engine
This is Rietveld 408576698