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

Unified Diff: chrome/common/extensions/manifest_handlers/content_scripts_handler.cc

Issue 309533007: Refactor PermissionsData pt1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/common/extensions/manifest_handlers/content_scripts_handler.cc
diff --git a/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc b/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
index 5ca9f9af2275696e7e7645248e846b1358daefa4..353dd6619ff4b7470cb009f7b204f7af520d97e9 100644
--- a/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
+++ b/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
@@ -16,6 +16,7 @@
#include "extensions/common/extension.h"
#include "extensions/common/extension_resource.h"
#include "extensions/common/manifest_constants.h"
+#include "extensions/common/manifest_handlers/permissions_parser.h"
#include "extensions/common/permissions/permissions_data.h"
#include "extensions/common/url_pattern.h"
#include "extensions/common/url_pattern_set.h"
@@ -428,9 +429,8 @@ bool ContentScriptsHandler::Parse(Extension* extension, base::string16* error) {
}
extension->SetManifestData(keys::kContentScripts,
content_scripts_info.release());
- PermissionsData::SetInitialScriptableHosts(
- extension,
- ContentScriptsInfo::GetScriptableHosts(extension));
+ PermissionsParser::SetScriptableHosts(
+ extension, ContentScriptsInfo::GetScriptableHosts(extension));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698