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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 6772022: Make <all_urls> and file:///* in permissions trigger "Allow file access" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ExtensionModuleApiTest.(In)CognitoNoFile. Created 9 years, 9 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_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index fb4ea2ef31031edf41fa6cb6d6ae33cc6f5dab9f..9843a1b93a51e65f6a06e6b6f5c9fb6be836977d 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -164,6 +164,8 @@ class ExtensionService
// Whether this extension can inject scripts into pages with file URLs.
bool AllowFileAccess(const Extension* extension);
+ // Will reload the extension since this permission is applied at loading time
+ // only.
void SetAllowFileAccess(const Extension* extension, bool allow);
// Getter and setter for the Browser Action visibility in the toolbar.

Powered by Google App Engine
This is Rietveld 408576698