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

Unified Diff: chrome/browser/ui/views/frame/native_browser_frame_factory.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.cc
diff --git a/chrome/browser/ui/views/frame/native_browser_frame_factory.cc b/chrome/browser/ui/views/frame/native_browser_frame_factory.cc
index ae5cc6d8b924161e4ab81d34d4cbffd1913d82d0..f379ca079a6da306bc1ba902a361cb0912f9d470 100644
--- a/chrome/browser/ui/views/frame/native_browser_frame_factory.cc
+++ b/chrome/browser/ui/views/frame/native_browser_frame_factory.cc
@@ -26,3 +26,20 @@ void NativeBrowserFrameFactory::Set(NativeBrowserFrameFactory* new_factory) {
delete factory;
factory = new_factory;
}
+
+#if !defined(OS_WIN)
+// static
+chrome::HostDesktopType NativeBrowserFrameFactory::AdjustHostDesktopType(
+ chrome::HostDesktopType desktop_type) {
+ return desktop_type;
+}
+#endif // !defined(OS_WIN)
+
+#if !defined(USE_ASH) || defined(OS_CHROMEOS)
+// static
+bool NativeBrowserFrameFactory::ShouldCreateForAshDesktop(
+ BrowserView* browser_view) {
+ NOTREACHED();
+ return false;
+}
+#endif // !defined(OS_WIN) || !defined(USE_ASH)

Powered by Google App Engine
This is Rietveld 408576698