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

Unified Diff: chrome/browser/ui/app_list/search/app_result.cc

Issue 1130353010: Remove deprecated ExtensionService::GetInstalledExtension() usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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/app_result.cc
diff --git a/chrome/browser/ui/app_list/search/app_result.cc b/chrome/browser/ui/app_list/search/app_result.cc
index d8752cb13d6e24c7bc0cf5dde2171909928bcc9a..50807e0a12a7bf90dd244248d30faa7ca2f0e04d 100644
--- a/chrome/browser/ui/app_list/search/app_result.cc
+++ b/chrome/browser/ui/app_list/search/app_result.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/ui/app_list/search/app_result.h"
#include "base/time/time.h"
-#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/app_list/app_context_menu.h"
@@ -41,8 +40,9 @@ AppResult::AppResult(Profile* profile,
set_display_type(is_recommendation ? DISPLAY_RECOMMENDATION : DISPLAY_TILE);
const extensions::Extension* extension =
- extensions::ExtensionSystem::Get(profile_)->extension_service()
- ->GetInstalledExtension(app_id_);
+ extensions::ExtensionRegistry::Get(profile_)->GetExtensionById(
+ app_id_,
+ extensions::ExtensionRegistry::EVERYTHING);
DCHECK(extension);
is_platform_app_ = extension->is_platform_app();
@@ -83,8 +83,9 @@ void AppResult::UpdateFromLastLaunched(const base::Time& current_time,
void AppResult::Open(int event_flags) {
RecordHistogram(APP_SEARCH_RESULT);
const extensions::Extension* extension =
- extensions::ExtensionSystem::Get(profile_)->extension_service()
- ->GetInstalledExtension(app_id_);
+ extensions::ExtensionRegistry::Get(profile_)->GetExtensionById(
+ app_id_,
+ extensions::ExtensionRegistry::EVERYTHING);
if (!extension)
return;

Powered by Google App Engine
This is Rietveld 408576698