Index: chrome/browser/apps/chrome_apps_client.cc |
diff --git a/chrome/browser/apps/chrome_apps_client.cc b/chrome/browser/apps/chrome_apps_client.cc |
index 5c931acffcd4e1268424f778b90340fb62fce973..91032091825d7dfaca80ed561792be3904312687 100644 |
--- a/chrome/browser/apps/chrome_apps_client.cc |
+++ b/chrome/browser/apps/chrome_apps_client.cc |
@@ -8,13 +8,8 @@ |
#include "base/memory/singleton.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/profiles/profile_manager.h" |
-#include "chrome/browser/ui/apps/app_metro_infobar_delegate_win.h" |
#include "extensions/common/extension.h" |
-#if defined(OS_WIN) |
-#include "win8/util/win8_util.h" |
-#endif |
- |
// TODO(jamescook): We probably shouldn't compile this class at all on Android. |
// See http://crbug.com/343612 |
#if !defined(OS_ANDROID) |
@@ -40,22 +35,6 @@ std::vector<content::BrowserContext*> |
profiles.end()); |
} |
-bool ChromeAppsClient::CheckAppLaunch(content::BrowserContext* context, |
- const extensions::Extension* extension) { |
-#if defined(OS_WIN) |
- // On Windows 8's single window Metro mode we can not launch platform apps. |
- // Offer to switch Chrome to desktop mode. |
- if (win8::IsSingleWindowMetroMode()) { |
- AppMetroInfoBarDelegateWin::Create( |
- Profile::FromBrowserContext(context), |
- AppMetroInfoBarDelegateWin::LAUNCH_PACKAGED_APP, |
- extension->id()); |
- return false; |
- } |
-#endif |
- return true; |
-} |
- |
apps::AppWindow* ChromeAppsClient::CreateAppWindow( |
content::BrowserContext* context, |
const extensions::Extension* extension) { |