Index: chrome/browser/extensions/webstore_standalone_installer.cc |
diff --git a/chrome/browser/extensions/webstore_standalone_installer.cc b/chrome/browser/extensions/webstore_standalone_installer.cc |
index 760cb00eb281ea0a003aa3204c8fe4e7cd83727c..00edd2c63cfdcd055afd7d0be91767f9df3d31bf 100644 |
--- a/chrome/browser/extensions/webstore_standalone_installer.cc |
+++ b/chrome/browser/extensions/webstore_standalone_installer.cc |
@@ -209,28 +209,6 @@ void WebstoreStandaloneInstaller::InstallUIProceed() { |
// Don't install a blacklisted extension. |
install_result = webstore_install::BLACKLISTED; |
install_message = kExtensionIsBlacklisted; |
- } else if (util::IsEphemeralApp(installed_extension->id(), profile_)) { |
- // If the target extension has already been installed ephemerally and is |
- // up to date, it can be promoted to a regular installed extension and |
- // downloading from the Web Store is not necessary. |
- scoped_refptr<const Extension> extension_to_install = |
- GetLocalizedExtensionForDisplay(); |
- if (!extension_to_install.get()) { |
- CompleteInstall(webstore_install::INVALID_MANIFEST, |
- kInvalidManifestError); |
- return; |
- } |
- |
- if (installed_extension->version()->CompareTo( |
- *extension_to_install->version()) < 0) { |
- // If the existing extension is out of date, proceed with the install |
- // to update the extension. |
- done = false; |
- } else { |
- install_ui::ShowPostInstallUIForApproval( |
- profile_, *approval, installed_extension); |
- extension_service->PromoteEphemeralApp(installed_extension, false); |
- } |
} else if (!extension_service->IsExtensionEnabled(id_)) { |
// If the extension is installed but disabled, and not blacklisted, |
// enable it. |