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

Unified Diff: chrome/common/chrome_constants.cc

Issue 10928172: Implement the persistent metro mode setting (win8) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/common/chrome_constants.cc
===================================================================
--- chrome/common/chrome_constants.cc (revision 156626)
+++ chrome/common/chrome_constants.cc (working copy)
@@ -17,8 +17,18 @@
#else
#error Unknown branding
#endif
-#endif // OS_MACOSX
+#endif // defined(OS_MACOSX)
+#if defined(OS_WIN)
+#if defined(GOOGLE_CHROME_BUILD)
+#define PRODUCT_STRING_PATH L"Google\\Chrome"
+#elif defined(CHROMIUM_BUILD)
+#define PRODUCT_STRING_PATH L"Chromium"
+#else
+#error Unknown branding
+#endif
+#endif // defined(OS_WIN)
+
namespace chrome {
const char kChromeVersionEnvVar[] = "CHROME_VERSION";
@@ -205,11 +215,15 @@
#if defined(OS_WIN)
// This is used by the PreRead experiment.
const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT";
+// This is used by chrome in Windows 8 metro mode.
const wchar_t kMetroChromeUserDataSubDir[] = L"Metro";
const wchar_t kMetroNavigationAndSearchMessage[] =
L"CHROME_METRO_NAV_SEARCH_REQUEST";
const wchar_t kMetroGetCurrentTabInfoMessage[] =
L"CHROME_METRO_GET_CURRENT_TAB_INFO";
+const wchar_t kMetroRegistryPath[] =
+ L"Software\\" PRODUCT_STRING_PATH L"\\Metro";
+const wchar_t kLaunchModeValue[] = L"launch_mode";
#endif
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698