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 2924bcf11587b732b7f866d9ff7df03ed0c45bb2..ae3f0496e066940ecea7d88253a28af3a66cb6c7 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,14 @@ void StartupBrowserCreatorImpl::ProcessLaunchURLs( |
return; |
} |
+#if defined(OS_WIN) |
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8) { |
sky
2013/03/20 14:30:00
Is it possible to move this into startup_browser_c
|
+ // 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; |