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

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: Self review, Devlin review. 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
« no previous file with comments | « chrome/browser/ui/app_list/app_list_test_util.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « chrome/browser/ui/app_list/app_list_test_util.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698