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

Unified Diff: chrome/browser/ui/host_desktop.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: Bots do not seem to care, but try not to break non-CrOS Ash on Linux. Also fix typo. 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/host_desktop.cc
diff --git a/chrome/browser/ui/host_desktop.cc b/chrome/browser/ui/host_desktop.cc
index f62ad8d32d1fd7b056b787033ac36e4d16113ff1..ce2bf3767e6457e75ca3f4f17a818e3e522cd0ec 100644
--- a/chrome/browser/ui/host_desktop.cc
+++ b/chrome/browser/ui/host_desktop.cc
@@ -70,4 +70,13 @@ HostDesktopType GetActiveDesktop() {
return HOST_DESKTOP_TYPE_NATIVE;
}
+HostDesktopType GetVerifiedHostDesktopForBrowser(HostDesktopType desktop_type) {
+#if defined(USE_ASH) && defined(OS_WIN)
+ if (ash::Shell::HasInstance())
+ return chrome::HOST_DESKTOP_TYPE_ASH;
Shrikant Kelkar 2013/11/14 23:54:23 I doubt if this will work when we have both ASH an
tapted 2013/11/15 00:11:51 Yes that's correct. This function is to capture th
+
+#endif
+ return desktop_type;
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698