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

Unified Diff: chrome/browser/chromeos/offline/offline_load_page.cc

Issue 349073004: Cleanup: Remove deprecated Profile::GetExtensionService(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
Index: chrome/browser/chromeos/offline/offline_load_page.cc
diff --git a/chrome/browser/chromeos/offline/offline_load_page.cc b/chrome/browser/chromeos/offline/offline_load_page.cc
index 0937b5d8ff2fc202f1bf6b77b715d4763f97c515..f957eaa9a312b9c954ea44da51d2bf916596ade8 100644
--- a/chrome/browser/chromeos/offline/offline_load_page.cc
+++ b/chrome/browser/chromeos/offline/offline_load_page.cc
@@ -29,6 +29,7 @@
#include "content/public/browser/interstitial_page.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/web_contents.h"
+#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_icon_set.h"
@@ -110,8 +111,8 @@ std::string OfflineLoadPage::GetHTMLContents() {
return webui::GetTemplatesHtml(template_html, &error_strings, "t");
}
- void OfflineLoadPage::OverrideRendererPrefs(
- content::RendererPreferences* prefs) {
+void OfflineLoadPage::OverrideRendererPrefs(
+ content::RendererPreferences* prefs) {
Profile* profile = Profile::FromBrowserContext(
web_contents_->GetBrowserContext());
renderer_preferences_util::UpdateFromSystemSettings(prefs, profile);
@@ -143,8 +144,10 @@ void OfflineLoadPage::CommandReceived(const std::string& cmd) {
} else if (command == "open_connectivity_diagnostics") {
Profile* profile = Profile::FromBrowserContext(
web_contents_->GetBrowserContext());
- const extensions::Extension* extension = profile->GetExtensionService()->
- GetInstalledExtension("kodldpbjkkmmnilagfdheibampofhaom");
+ const extensions::Extension* extension =
+ extensions::ExtensionRegistry::Get(profile)->GetExtensionById(
+ "kodldpbjkkmmnilagfdheibampofhaom",
+ extensions::ExtensionRegistry::EVERYTHING);
apps::LaunchPlatformAppWithUrl(profile, extension, "",
GURL::EmptyGURL(), GURL::EmptyGURL());

Powered by Google App Engine
This is Rietveld 408576698