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

Unified Diff: chrome/browser/shell_integration.h

Issue 10470002: Add ShellIntegration::ActivateMetroChrome, which launches Chrome in metro-mode on Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include windows.h for HRESULT Created 8 years, 7 months 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/shell_integration.h
diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h
index 3a0b3ab052689e444505d79ece8d3f1a2fb7df73..2c1ae7911948ec087b2143f435d49e7a72b452e2 100644
--- a/chrome/browser/shell_integration.h
+++ b/chrome/browser/shell_integration.h
@@ -124,6 +124,11 @@ class ShellIntegration {
// Migrates existing chrome shortcuts by tagging them with correct app id.
// see http://crbug.com/28104
static void MigrateChromiumShortcuts();
+
+ // Activates Chrome in metro-mode on Windows 8. Returns false if called on
+ // earlier versions of Windows, if called from within metro-mode, if Chrome
+ // is not the default browser, or if an actual error occurs.
+ static bool ActivateMetroChrome();
#endif // defined(OS_WIN)
// The current default web client application UI state. This is used when

Powered by Google App Engine
This is Rietveld 408576698