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

Unified Diff: chrome/browser/sessions/tab_restore_service_helper.cc

Issue 218683011: Remove ExtensionService::[Get|Is]InstalledApp() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_ces_get_installed_ext_by_url
Patch Set: Created 6 years, 8 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/sessions/tab_restore_service_helper.cc
diff --git a/chrome/browser/sessions/tab_restore_service_helper.cc b/chrome/browser/sessions/tab_restore_service_helper.cc
index e33a298d98073d86aaf7e1d7d7890d567af171c4..7c1121f43e42da9a72bf63996189c9d793826244 100644
--- a/chrome/browser/sessions/tab_restore_service_helper.cc
+++ b/chrome/browser/sessions/tab_restore_service_helper.cc
@@ -10,7 +10,6 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/stl_util.h"
-#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_types.h"
@@ -22,7 +21,9 @@
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/session_storage_namespace.h"
#include "content/public/browser/web_contents.h"
+#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
+#include "extensions/common/extension_set.h"
#if !defined(OS_ANDROID)
#include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h"
@@ -37,9 +38,9 @@ namespace {
void RecordAppLaunch(Profile* profile, const TabRestoreService::Tab& tab) {
#if !defined(OS_ANDROID)
GURL url = tab.navigations.at(tab.current_navigation_index).virtual_url();
- DCHECK(profile->GetExtensionService());
const extensions::Extension* extension =
- profile->GetExtensionService()->GetInstalledApp(url);
+ extensions::ExtensionRegistry::Get(profile)
+ ->enabled_extensions().GetAppByURL(url);
if (!extension)
return;
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/sync_file_system/local/local_file_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698