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

Unified Diff: chrome/browser/apps/app_launch_for_metro_restart_win.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/app/google_chrome_strings.grd ('k') | chrome/browser/apps/chrome_apps_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/app_launch_for_metro_restart_win.cc
diff --git a/chrome/browser/apps/app_launch_for_metro_restart_win.cc b/chrome/browser/apps/app_launch_for_metro_restart_win.cc
index 50c3ce83ddb5f7e9f5ed1396e8e298f073034140..ea82b2867bb3672bb35430ae54f6123b1b961dca 100644
--- a/chrome/browser/apps/app_launch_for_metro_restart_win.cc
+++ b/chrome/browser/apps/app_launch_for_metro_restart_win.cc
@@ -19,7 +19,6 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/pref_names.h"
#include "extensions/browser/extension_system.h"
-#include "win8/util/win8_util.h"
using extensions::Extension;
using extensions::ExtensionSystem;
@@ -70,13 +69,6 @@ void HandleAppLaunchForMetroRestart(Profile* profile) {
prefs->ClearPref(prefs::kAppLaunchForMetroRestart);
- if (win8::IsSingleWindowMetroMode()) {
- // In this case we have relaunched with the correct profile, but we are not
- // in Desktop mode, so can not launch apps. Leave the preferences cleared so
- // there are no surprises later.
- return;
- }
-
const int kRestartAppLaunchDelayMs = 1000;
base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/apps/chrome_apps_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698