Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: chrome/browser/ui/views/frame/native_browser_frame_factory_aura.cc

Issue 58853004: [win8] Force browsers created with Chrome in Metro mode to be on the Ash desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move from browser_commands to BrowserWindow Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/native_browser_frame_factory_aura.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_aura.cc
deleted file mode 100644
index 36ae1b354781ceed402657ff32ed422595231423..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/frame/native_browser_frame_factory_aura.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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/browser.h"
-#include "chrome/browser/ui/views/frame/browser_view.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) {
- return new BrowserFrameAsh(browser_frame, browser_view);
- }
-#endif // USE_ASH
- return new DesktopBrowserFrameAura(browser_frame, browser_view);
-#endif
-}
-

Powered by Google App Engine
This is Rietveld 408576698