Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index 1b68f88763ab69111778886b333160f0a40f02b8..47b7a9c3b7544e464c67af1b56d122fd2da4d5ac 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -2996,8 +2996,10 @@ bool ExtensionService::ShouldEnableOnInstall(const Extension* extension) { |
if (FeatureSwitch::prompt_for_external_extensions()->IsEnabled()) { |
// External extensions are initially disabled. We prompt the user before |
- // enabling them. |
- if (Extension::IsExternalLocation(extension->location()) && |
+ // enabling them. Hosted apps are excepted because they are not dangerous |
+ // (they need to be launched by the user anyway). |
+ if (extension->GetType() != Extension::TYPE_HOSTED_APP && |
+ Extension::IsExternalLocation(extension->location()) && |
!extension_prefs_->IsExternalExtensionAcknowledged(extension->id())) { |
return false; |
} |