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

Unified Diff: chrome/browser/ui/app_list/search/webstore/webstore_result.cc

Issue 1497193002: Remove all the ephemeral apps code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests Created 5 years 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/ui/app_list/search/webstore/webstore_result.cc
diff --git a/chrome/browser/ui/app_list/search/webstore/webstore_result.cc b/chrome/browser/ui/app_list/search/webstore/webstore_result.cc
index d160709b19a46457a81d8347a77777ae89686992..ddb568e70e19bcff3d72991fd48d5ea51b86b4e9 100644
--- a/chrome/browser/ui/app_list/search/webstore/webstore_result.cc
+++ b/chrome/browser/ui/app_list/search/webstore/webstore_result.cc
@@ -127,7 +127,8 @@ void WebstoreResult::UpdateActions() {
const bool is_otr = profile_->IsOffTheRecord();
const bool is_installed =
- extensions::util::IsExtensionInstalledPermanently(app_id_, profile_);
+ extension_registry_->GetExtensionById(
+ app_id_, extensions::ExtensionRegistry::EVERYTHING) != nullptr;
if (!is_otr && !is_installed && !is_installing()) {
actions.push_back(Action(
@@ -228,8 +229,8 @@ void WebstoreResult::OnExtensionInstalled(
SetIsInstalling(false);
UpdateActions();
- if (extensions::util::IsExtensionInstalledPermanently(extension->id(),
- profile_)) {
+ if (extension_registry_->GetExtensionById(
+ app_id_, extensions::ExtensionRegistry::EVERYTHING)) {
NotifyItemInstalled();
}
}

Powered by Google App Engine
This is Rietveld 408576698