Index: chrome/browser/ui/views/frame/native_browser_frame_factory_aurax11.cc |
diff --git a/chrome/browser/ui/views/frame/native_browser_frame_factory_aura.cc b/chrome/browser/ui/views/frame/native_browser_frame_factory_aurax11.cc |
similarity index 59% |
rename from chrome/browser/ui/views/frame/native_browser_frame_factory_aura.cc |
rename to chrome/browser/ui/views/frame/native_browser_frame_factory_aurax11.cc |
index 36ae1b354781ceed402657ff32ed422595231423..27e65e82f25e4d72b60697143bbc91961633256a 100644 |
--- a/chrome/browser/ui/views/frame/native_browser_frame_factory_aura.cc |
+++ b/chrome/browser/ui/views/frame/native_browser_frame_factory_aurax11.cc |
@@ -4,33 +4,18 @@ |
#include "chrome/browser/ui/views/frame/native_browser_frame_factory.h" |
-#include "chrome/browser/ui/browser.h" |
-#include "chrome/browser/ui/views/frame/browser_view.h" |
+#include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h" |
#if defined(USE_ASH) |
-#include "ash/wm/window_util.h" |
-#include "chrome/browser/ui/ash/ash_init.h" |
#include "chrome/browser/ui/views/frame/browser_frame_ash.h" |
#endif |
-#if !defined(OS_CHROMEOS) |
-#include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h" |
-#endif |
- |
NativeBrowserFrame* NativeBrowserFrameFactory::Create( |
BrowserFrame* browser_frame, |
BrowserView* browser_view) { |
-#if defined(OS_CHROMEOS) |
- return new BrowserFrameAsh(browser_frame, browser_view); |
-#else |
#if defined(USE_ASH) |
- if (chrome::ShouldOpenAshOnStartup() || |
- browser_view->browser()-> |
- host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) { |
+ if (ShouldCreateForAshDesktop(browser_view)) |
return new BrowserFrameAsh(browser_frame, browser_view); |
- } |
-#endif // USE_ASH |
- return new DesktopBrowserFrameAura(browser_frame, browser_view); |
#endif |
+ return new DesktopBrowserFrameAura(browser_frame, browser_view); |
} |
- |