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

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

Issue 9320021: Fix crash in ExtensionService::InitializePermissions(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add the test data Created 8 years, 11 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.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 9fc73cddc592eb3b1f50d7e7fd7359cfb470bd16..04475081a52ddc8d892092fde25f1caeb48a4a19 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -2665,7 +2665,7 @@ bool Extension::ParsePermissions(const extensions::Manifest* source,
}
bool Extension::CanSilentlyIncreasePermissions() const {
- return location() != INTERNAL && location() != LOAD;
+ return location() != INTERNAL;
}
bool Extension::CanSpecifyHostPermission(const URLPattern& pattern,
« no previous file with comments | « chrome/browser/extensions/permissions_updater.cc ('k') | chrome/test/data/extensions/unpacked/manifest_no_key.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698