Chromium Code Reviews| Index: chrome/browser/extensions/extension_service.cc |
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
| index adc9e4fe7f33a096cd8d73c65f75ab6356339d2a..d23a250ebfe98677ea8ca72e9d8061b0836ccd1f 100644 |
| --- a/chrome/browser/extensions/extension_service.cc |
| +++ b/chrome/browser/extensions/extension_service.cc |
| @@ -1584,12 +1584,10 @@ void ExtensionService::CheckPermissionsIncrease(const Extension* extension, |
| int disable_reasons = extension_prefs_->GetDisableReasons(extension->id()); |
| bool auto_grant_permission = |
| - (!is_extension_installed && extension->was_installed_by_default()) || |
| + extension->was_installed_by_default() || |
| extensions::ExtensionsBrowserClient::Get()->IsRunningInForcedAppMode(); |
| - // Silently grant all active permissions to default apps only on install. |
| - // After install they should behave like other apps. |
| - // Silently grant all active permissions to apps install in kiosk mode on both |
| - // install and update. |
| + // Silently grant all active permissions to default apps and apps installed |
| + // in kiosk mode. |
|
not at google - send to devlin
2015/02/17 18:30:36
nit: move this comment above the assignment to aut
|
| if (auto_grant_permission) |
| GrantPermissions(extension); |