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

Unified Diff: chrome/browser/extensions/extensions_service.cc

Issue 3039005: Fix some issues with extensions: (Closed)
Patch Set: fix host perms Created 10 years, 5 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
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/resources/extensions_ui.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extensions_service.cc
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
index 3259c113e2fa701c980d73aa7ed6906f9932355e..9c509d40385920733bf5414045a1b77f19354864 100644
--- a/chrome/browser/extensions/extensions_service.cc
+++ b/chrome/browser/extensions/extensions_service.cc
@@ -975,6 +975,11 @@ void ExtensionsService::OnExtensionInstalled(Extension* extension,
extension_prefs_->OnExtensionInstalled(
extension, initial_state, initial_enable_incognito);
+ // Unpacked extensions start off with file access since they are a developer
+ // feature.
+ if (extension->location() == Extension::LOAD)
+ extension_prefs_->SetAllowFileAccess(extension->id(), true);
+
// If the extension is a theme, tell the profile (and therefore ThemeProvider)
// to apply it.
if (extension->is_theme()) {
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/resources/extensions_ui.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698