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

Unified Diff: chrome/browser/apps/chrome_apps_client.cc

Issue 226283003: Remove single-window-metro-mode code paths for the app launcher and apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thought I deleted this already Created 6 years, 9 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
« no previous file with comments | « chrome/browser/apps/chrome_apps_client.h ('k') | chrome/browser/ui/app_list/app_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/apps/chrome_apps_client.h ('k') | chrome/browser/ui/app_list/app_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698