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

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

Issue 120593003: Move kFileScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 bd4d6cda7ec27aeeb236a3b2442c62427da13226..94b5fd9062a3791764cc56a1975c98b8b1708cd0 100644
--- a/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
+++ b/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
@@ -160,7 +160,7 @@ bool LoadUserScriptFromDictionary(const base::DictionaryValue* content_script,
pattern.valid_schemes() & ~URLPattern::SCHEME_CHROMEUI);
}
- if (pattern.MatchesScheme(chrome::kFileScheme) &&
+ if (pattern.MatchesScheme(content::kFileScheme) &&
!PermissionsData::CanExecuteScriptEverywhere(extension)) {
extension->set_wants_file_access(true);
if (!(extension->creation_flags() & Extension::ALLOW_FILE_ACCESS)) {
« no previous file with comments | « chrome/common/content_settings_pattern_parser.cc ('k') | chrome/common/extensions/permissions/permission_message_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698