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

Unified Diff: chrome/browser/ui/browser_commands.h

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: respond to comments 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/browser_commands.h
diff --git a/chrome/browser/ui/browser_commands.h b/chrome/browser/ui/browser_commands.h
index 9976833c9617a040e87f505bdd46a06644983796..022e06c966e18a84b009f266143defeeb12e6308 100644
--- a/chrome/browser/ui/browser_commands.h
+++ b/chrome/browser/ui/browser_commands.h
@@ -58,6 +58,11 @@ void OpenWindowWithRestoredTabs(Profile* profile,
void OpenURLOffTheRecord(Profile* profile, const GURL& url,
chrome::HostDesktopType desktop_type);
+// On Windows with Ash, checks whether Chrome is running in Metro mode and
+// returns HOST_DESKTOP_TYPE_ASH, to ensure all browsers are created in Metro
+// mode. Otherwise returns |desktop_type|.
+HostDesktopType GetVerifiedHostDesktopForBrowser(HostDesktopType desktop_type);
+
bool CanGoBack(const Browser* browser);
void GoBack(Browser* browser, WindowOpenDisposition disposition);
bool CanGoForward(const Browser* browser);

Powered by Google App Engine
This is Rietveld 408576698