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

Unified Diff: chrome/common/extensions/extension.h

Issue 7595005: Revert 95815 - Make extension file URL access opt-in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/extension.h
===================================================================
--- chrome/common/extensions/extension.h (revision 95819)
+++ chrome/common/extensions/extension.h (working copy)
@@ -287,6 +287,12 @@
location == Extension::COMPONENT;
}
+ // Unpacked extensions start off with file access since they are a developer
+ // feature.
+ static inline bool ShouldAlwaysAllowFileAccess(Location location) {
+ return location == Extension::LOAD;
+ }
+
// See Type definition above.
Type GetType() const;
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/test/data/extensions/good/Preferences » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698