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

Unified Diff: chrome/browser/extensions/extension_service.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: . 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/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 7891b8364bbd2f3d4400a05370075e2cde2b5761..9d8695158d41217f3e56210470c0c773721532b5 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -2116,7 +2116,7 @@ void ExtensionService::InitializePermissions(const Extension* extension) {
// We only need to compare the granted permissions to the current permissions
// if the extension is not allowed to silently increase its permissions.
- if (!extension->CanSilentlyIncreasePermissions()) {
+ if (!extension->CanSilentlyIncreasePermissionsDuringInstall()) {
// Add all the recognized permissions if the granted permissions list
// hasn't been initialized yet.
scoped_refptr<ExtensionPermissionSet> granted_permissions =

Powered by Google App Engine
This is Rietveld 408576698