Index: chrome/browser/ui/views/frame/native_browser_frame_factory_desktop_ash.cc |
diff --git a/chrome/browser/ui/views/frame/native_browser_frame_factory_desktop_ash.cc b/chrome/browser/ui/views/frame/native_browser_frame_factory_desktop_ash.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..94aaea47ebed59cc9cd564d7cb6a7288fc6924c6 |
--- /dev/null |
+++ b/chrome/browser/ui/views/frame/native_browser_frame_factory_desktop_ash.cc |
@@ -0,0 +1,16 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/ui/views/frame/native_browser_frame_factory.h" |
+ |
+#include "chrome/browser/ui/ash/ash_init.h" |
+#include "chrome/browser/ui/browser.h" |
+#include "chrome/browser/ui/views/frame/browser_view.h" |
+ |
+bool NativeBrowserFrameFactory::ShouldCreateForAshDesktop( |
+ BrowserView* browser_view) { |
+ return chrome::ShouldOpenAshOnStartup() || |
+ browser_view->browser()->host_desktop_type() == |
+ chrome::HOST_DESKTOP_TYPE_ASH; |
+} |