| 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();
|
| }
|
| }
|
|
|