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 f78a07abd3a089a7e6b77d4314d72500d81c9a38..84ee635b8d640e2c305d01a4221c3f04eab50a01 100644 |
--- a/chrome/browser/chromeos/offline/offline_load_page.cc |
+++ b/chrome/browser/chromeos/offline/offline_load_page.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/chromeos/offline/offline_load_page.h" |
+#include "apps/launcher.h" |
#include "ash/shell.h" |
#include "ash/shell_delegate.h" |
#include "ash/system/tray/system_tray_delegate.h" |
@@ -137,6 +138,14 @@ void OfflineLoadPage::CommandReceived(const std::string& cmd) { |
// TODO(oshima): record action for metrics. |
if (command == "open_network_settings") { |
ash::Shell::GetInstance()->system_tray_delegate()->ShowNetworkSettings(""); |
+ } else if (command == "open_connectivity_diagnostics") { |
+ Profile* profile = Profile::FromBrowserContext( |
+ web_contents_->GetBrowserContext()); |
+ const extensions::Extension* extension = profile->GetExtensionService()-> |
+ GetInstalledExtension("kodldpbjkkmmnilagfdheibampofhaom"); |
xiyuan
2014/01/08 23:17:40
nit: add the app id to extension_constants.h|cc.
Zachary Kuznia
2014/01/08 23:23:51
Doing so in a follow up CL, as discussed.
|
+ apps::LaunchPlatformAppWithUrl(profile, extension, "", |
+ GURL::EmptyGURL(), GURL::EmptyGURL()); |
+ |
} else { |
LOG(WARNING) << "Unknown command:" << cmd; |
} |