| 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..f97a5f098da8a12828c811ab7c73efee084d92cc 100644
|
| --- a/chrome/browser/ui/app_list/search/webstore/webstore_result.cc
|
| +++ b/chrome/browser/ui/app_list/search/webstore/webstore_result.cc
|
| @@ -22,7 +22,6 @@
|
| #include "chrome/grit/generated_resources.h"
|
| #include "extensions/browser/extension_registry.h"
|
| #include "extensions/browser/extension_system.h"
|
| -#include "extensions/browser/extension_util.h"
|
| #include "extensions/common/extension.h"
|
| #include "extensions/common/extension_urls.h"
|
| #include "grit/theme_resources.h"
|
| @@ -127,7 +126,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 +228,8 @@ void WebstoreResult::OnExtensionInstalled(
|
| SetIsInstalling(false);
|
| UpdateActions();
|
|
|
| - if (extensions::util::IsExtensionInstalledPermanently(extension->id(),
|
| - profile_)) {
|
| + if (extension_registry_->GetExtensionById(
|
| + app_id_, extensions::ExtensionRegistry::EVERYTHING)) {
|
| NotifyItemInstalled();
|
| }
|
| }
|
|
|