diff options
author | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-08 16:07:01 +0000 |
---|---|---|
committer | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-08 16:07:01 +0000 |
commit | cdfca9705f17519a7805280cdc49397ed428f058 (patch) | |
tree | 983a11d21cb1f54afb412b884a8944a6906ce0fc /chrome/common/extensions/extension.h | |
parent | 2398153de7cfb8803f332d5933e75aed7f2d3943 (diff) | |
download | chromium_src-cdfca9705f17519a7805280cdc49397ed428f058.zip chromium_src-cdfca9705f17519a7805280cdc49397ed428f058.tar.gz chromium_src-cdfca9705f17519a7805280cdc49397ed428f058.tar.bz2 |
Revert 95815 - Make extension file URL access opt-in.
This corrects an issue causing file URL access to default on for <all_urls> and file:/// permissions. We also revert all extension's "allow file access" flags to false since we can't distinguish between extensions that were installed with the bug present and those where the user clicked allow file access. Unpacked extensions will now have opt-in file access as well.
BUG=91577
TEST=ExtensionServiceTest.DefaultFileAccess
Review URL: http://codereview.chromium.org/7574017
TBR=jstritar@chromium.org
Review URL: http://codereview.chromium.org/7595005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r-- | chrome/common/extensions/extension.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h index b3d6eb2..e46cba1 100644 --- a/chrome/common/extensions/extension.h +++ b/chrome/common/extensions/extension.h @@ -287,6 +287,12 @@ class Extension : public base::RefCountedThreadSafe<Extension> { 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; |