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

Side by Side Diff: chrome/tools/disable_outdated_build_detector/constants.cc

Issue 2236843002: Do not rely on identical string constants having distinct pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/tools/disable_outdated_build_detector/constants.h" 5 #include "chrome/tools/disable_outdated_build_detector/constants.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 const char kMultiInstall[] = "multi-install"; 9 const char kMultiInstall[] = "multi-install";
10 const char kSystemLevel[] = "system-level"; 10 const char kSystemLevel[] = "system-level";
11 11
12 } // namespace switches 12 } // namespace switches
13 13
14 namespace env { 14 namespace env {
15 15
16 // The presence of this environment variable with a value of 1 implies that the 16 // The presence of this environment variable with a value of 1 implies that the
17 // tool should run as a system installation regardless of what is on the command 17 // tool should run as a system installation regardless of what is on the command
18 // line. 18 // line.
19 const char kGoogleUpdateIsMachine[] = "GoogleUpdateIsMachine"; 19 const char kGoogleUpdateIsMachine[] = "GoogleUpdateIsMachine";
20 20
21 } // namespace env 21 } // namespace env
22 22
23 // App GUIDs for Google Chrome and the Google Chrome binaries.
24 #if defined(GOOGLE_CHROME_BUILD)
25 const wchar_t kChromeAppGuid[] = L"{8A69D345-D564-463c-AFF1-A69D9E530F96}";
26 const wchar_t kBinariesAppGuid[] = L"{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}";
27 #else
28 const wchar_t kChromeAppGuid[] = L"";
29 const wchar_t kBinariesAppGuid[] = L"";
30 #endif
31
32 // The new brand to which organic installs will be switched. 23 // The new brand to which organic installs will be switched.
33 const wchar_t kAOHY[] = L"AOHY"; 24 const wchar_t kAOHY[] = L"AOHY";
34 25
35 // The names of registry values within a product's ClientState key. 26 // The names of registry values within a product's ClientState key.
36 const wchar_t kBrand[] = L"brand"; 27 const wchar_t kBrand[] = L"brand";
37 const wchar_t kInstallerResult[] = L"InstallerResult"; 28 const wchar_t kInstallerResult[] = L"InstallerResult";
38 const wchar_t kInstallerError[] = L"InstallerError"; 29 const wchar_t kInstallerError[] = L"InstallerError";
39 const wchar_t kInstallerExtraCode1[] = L"InstallerExtraCode1"; 30 const wchar_t kInstallerExtraCode1[] = L"InstallerExtraCode1";
40 const wchar_t kUninstallArguments[] = L"UninstallArguments"; 31 const wchar_t kUninstallArguments[] = L"UninstallArguments";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698