Index: chrome/browser/ui/ash/ash_util.cc |
diff --git a/chrome/browser/ui/ash/ash_util.cc b/chrome/browser/ui/ash/ash_util.cc |
index de8b919cffa99b1d67f288192468f1344f6973fb..8216b458fb83e6caee00ae55be75462757253889 100644 |
--- a/chrome/browser/ui/ash/ash_util.cc |
+++ b/chrome/browser/ui/ash/ash_util.cc |
@@ -9,8 +9,22 @@ |
#include "chrome/browser/ui/host_desktop.h" |
#include "ui/aura/window_event_dispatcher.h" |
+#if !defined(OS_CHROMEOS) |
+#include "base/command_line.h" |
+#include "chrome/common/chrome_switches.h" |
+#endif |
+ |
namespace chrome { |
+bool ShouldOpenAshOnStartup() { |
+#if defined(OS_CHROMEOS) |
+ return true; |
+#else |
+ // TODO(scottmg): http://crbug.com/133312, will need this for Win8 too. |
+ return CommandLine::ForCurrentProcess()->HasSwitch(switches::kOpenAsh); |
+#endif |
+} |
+ |
bool IsNativeViewInAsh(gfx::NativeView native_view) { |
#if defined(OS_CHROMEOS) |
// Optimization. There is only ash or only athena on ChromeOS. |