| 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());
|
|
|
|
|