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

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: Changed if to iff Created 5 years, 6 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
« no previous file with comments | « chrome/browser/ui/app_list/extension_uninstaller.cc ('k') | extensions/browser/extension_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ec50023727c9553f3b00b996db7fa162091b62f2..89dbe9c24c6e51c74f5b3f143530730538d0ea53 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"
@@ -15,7 +14,6 @@
#include "chrome/common/extensions/extension_metrics.h"
#include "content/public/browser/user_metrics.h"
#include "extensions/browser/extension_registry.h"
-#include "extensions/browser/extension_system.h"
#include "extensions/browser/extension_system_provider.h"
#include "extensions/browser/extensions_browser_client.h"
#include "extensions/common/constants.h"
@@ -41,8 +39,8 @@ 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_)->GetInstalledExtension(
+ app_id_);
DCHECK(extension);
is_platform_app_ = extension->is_platform_app();
@@ -83,8 +81,8 @@ 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_)->GetInstalledExtension(
+ app_id_);
if (!extension)
return;
« no previous file with comments | « chrome/browser/ui/app_list/extension_uninstaller.cc ('k') | extensions/browser/extension_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698