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

Unified Diff: chrome/browser/ui/browser.cc

Issue 709813004: Remove the deprecated function ExtensionService::extensions(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Chrome OS compile failure. Created 6 years, 1 month 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index eda6e62972c6db0310415f8c5d554b7814b864c2..97ae8c627328e61996eb299716daa10c3628b509 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2440,8 +2440,9 @@ bool Browser::MaybeCreateBackgroundContents(
// can create BackgroundContents. We don't have to check for background
// permission as that is checked in RenderMessageFilter when the CreateWindow
// message is processed.
- const Extension* extension =
- extensions_service->extensions()->GetHostedAppByURL(opener_url);
+ const Extension* extension = extensions::ExtensionRegistry::Get(profile_)
+ ->enabled_extensions()
+ .GetHostedAppByURL(opener_url);
if (!extension)
return false;

Powered by Google App Engine
This is Rietveld 408576698