Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc |
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc |
index a817e8d5c1ffcc419662994ac4be788b898934bf..117b4d145eb53efa1d5ec0dac40ec052dcb6657c 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc |
@@ -101,6 +101,7 @@ |
#endif |
#if defined(OS_WIN) |
+#include "apps/app_launch_for_metro_restart_win.h" |
#include "base/win/windows_version.h" |
#endif |
@@ -557,6 +558,15 @@ void StartupBrowserCreatorImpl::ProcessLaunchURLs( |
return; |
} |
+// TODO(tapted): Move this to startup_browser_creator_win.cc after refactor. |
+#if defined(OS_WIN) |
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8) { |
+ // See if there are apps for this profile that should be launched on startup |
+ // due to a switch from Metro mode. |
+ apps::HandleAppLaunchForMetroRestart(profile_); |
+ } |
+#endif |
+ |
if (process_startup && ProcessStartupURLs(urls_to_open)) { |
// ProcessStartupURLs processed the urls, nothing else to do. |
return; |