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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_constants.h" 5 #include "chrome/common/chrome_constants.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 8
9 #define FPL FILE_PATH_LITERAL 9 #define FPL FILE_PATH_LITERAL
10 10
11 #if defined(OS_MACOSX) 11 #if defined(OS_MACOSX)
12 #define CHROMIUM_PRODUCT_STRING "Chromium" 12 #define CHROMIUM_PRODUCT_STRING "Chromium"
13 #if defined(GOOGLE_CHROME_BUILD) 13 #if defined(GOOGLE_CHROME_BUILD)
14 #define PRODUCT_STRING "Google Chrome" 14 #define PRODUCT_STRING "Google Chrome"
15 #elif defined(CHROMIUM_BUILD) 15 #elif defined(CHROMIUM_BUILD)
16 #define PRODUCT_STRING "Chromium" 16 #define PRODUCT_STRING "Chromium"
17 #else 17 #else
18 #error Unknown branding 18 #error Unknown branding
19 #endif 19 #endif
20 #endif // OS_MACOSX 20 #endif // defined(OS_MACOSX)
21
22 #if defined(OS_WIN)
23 #if defined(GOOGLE_CHROME_BUILD)
24 #define PRODUCT_STRING_PATH L"Google\\Chrome"
25 #elif defined(CHROMIUM_BUILD)
26 #define PRODUCT_STRING_PATH L"Chromium"
27 #else
28 #error Unknown branding
29 #endif
30 #endif // defined(OS_WIN)
21 31
22 namespace chrome { 32 namespace chrome {
23 33
24 const char kChromeVersionEnvVar[] = "CHROME_VERSION"; 34 const char kChromeVersionEnvVar[] = "CHROME_VERSION";
25 35
26 // The following should not be used for UI strings; they are meant 36 // The following should not be used for UI strings; they are meant
27 // for system strings only. UI changes should be made in the GRD. 37 // for system strings only. UI changes should be made in the GRD.
28 // 38 //
29 // There are four constants used to locate the executable name and path: 39 // There are four constants used to locate the executable name and path:
30 // 40 //
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 const float kMaxShareOfExtensionProcesses = 0.30f; 208 const float kMaxShareOfExtensionProcesses = 0.30f;
199 209
200 #if defined(OS_LINUX) 210 #if defined(OS_LINUX)
201 extern const int kLowestRendererOomScore = 300; 211 extern const int kLowestRendererOomScore = 300;
202 extern const int kHighestRendererOomScore = 1000; 212 extern const int kHighestRendererOomScore = 1000;
203 #endif 213 #endif
204 214
205 #if defined(OS_WIN) 215 #if defined(OS_WIN)
206 // This is used by the PreRead experiment. 216 // This is used by the PreRead experiment.
207 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT"; 217 const char kPreReadEnvironmentVariable[] = "CHROME_PRE_READ_EXPERIMENT";
218 // This is used by chrome in Windows 8 metro mode.
208 const wchar_t kMetroChromeUserDataSubDir[] = L"Metro"; 219 const wchar_t kMetroChromeUserDataSubDir[] = L"Metro";
209 const wchar_t kMetroNavigationAndSearchMessage[] = 220 const wchar_t kMetroNavigationAndSearchMessage[] =
210 L"CHROME_METRO_NAV_SEARCH_REQUEST"; 221 L"CHROME_METRO_NAV_SEARCH_REQUEST";
211 const wchar_t kMetroGetCurrentTabInfoMessage[] = 222 const wchar_t kMetroGetCurrentTabInfoMessage[] =
212 L"CHROME_METRO_GET_CURRENT_TAB_INFO"; 223 L"CHROME_METRO_GET_CURRENT_TAB_INFO";
224 const wchar_t kMetroRegistryPath[] =
225 L"Software\\" PRODUCT_STRING_PATH L"\\Metro";
226 const wchar_t kLaunchModeValue[] = L"launch_mode";
213 #endif 227 #endif
214 228
215 } // namespace chrome 229 } // namespace chrome
216 230
217 #undef FPL 231 #undef FPL
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698