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

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

Issue 9222013: Prevent unnecessary prompts when unpacked extensions use chrome.permissions.request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reword comment 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 8a4ec531764e80d0da80030d6bc0b506870ef537..8dae526dd663eedc86d0663d7bb9041f41387e7e 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -2660,7 +2660,7 @@ bool Extension::ParsePermissions(const extensions::Manifest* source,
}
bool Extension::CanSilentlyIncreasePermissions() const {
- return location() != INTERNAL;
+ return location() != INTERNAL && location() != LOAD;
}
bool Extension::CanSpecifyHostPermission(const URLPattern& pattern,
« no previous file with comments | « chrome/common/extensions/extension.h ('k') | chrome/test/data/extensions/api_test/permissions/optional/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698