OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/google/google_brand.h" | 5 #include "chrome/browser/google/google_brand.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 bool IsOrganic(const std::string& brand) { | 84 bool IsOrganic(const std::string& brand) { |
85 #if defined(OS_MACOSX) | 85 #if defined(OS_MACOSX) |
86 if (brand.empty()) { | 86 if (brand.empty()) { |
87 // An empty brand string on Mac is used for channels other than stable, | 87 // An empty brand string on Mac is used for channels other than stable, |
88 // which are always organic. | 88 // which are always organic. |
89 return true; | 89 return true; |
90 } | 90 } |
91 #endif | 91 #endif |
92 | 92 |
| 93 // Changes to this list must be mirrored in |
| 94 // chrome/tools/disable_outdated_build_detector/google_update_integration.cc. |
93 const char* const kBrands[] = { | 95 const char* const kBrands[] = { |
94 "CHCA", "CHCB", "CHCG", "CHCH", "CHCI", "CHCJ", "CHCK", "CHCL", | 96 "CHCA", "CHCB", "CHCG", "CHCH", "CHCI", "CHCJ", "CHCK", "CHCL", |
95 "CHFO", "CHFT", "CHHS", "CHHM", "CHMA", "CHMB", "CHME", "CHMF", | 97 "CHFO", "CHFT", "CHHS", "CHHM", "CHMA", "CHMB", "CHME", "CHMF", |
96 "CHMG", "CHMH", "CHMI", "CHMQ", "CHMV", "CHNB", "CHNC", "CHNG", | 98 "CHMG", "CHMH", "CHMI", "CHMQ", "CHMV", "CHNB", "CHNC", "CHNG", |
97 "CHNH", "CHNI", "CHOA", "CHOB", "CHOC", "CHON", "CHOO", "CHOP", | 99 "CHNH", "CHNI", "CHOA", "CHOB", "CHOC", "CHON", "CHOO", "CHOP", |
98 "CHOQ", "CHOR", "CHOS", "CHOT", "CHOU", "CHOX", "CHOY", "CHOZ", | 100 "CHOQ", "CHOR", "CHOS", "CHOT", "CHOU", "CHOX", "CHOY", "CHOZ", |
99 "CHPD", "CHPE", "CHPF", "CHPG", "ECBA", "ECBB", "ECDA", "ECDB", | 101 "CHPD", "CHPE", "CHPF", "CHPG", "ECBA", "ECBB", "ECDA", "ECDB", |
100 "ECSA", "ECSB", "ECVA", "ECVB", "ECWA", "ECWB", "ECWC", "ECWD", | 102 "ECSA", "ECSB", "ECVA", "ECVB", "ECWA", "ECWB", "ECWC", "ECWD", |
101 "ECWE", "ECWF", "EUBB", "EUBC", "GGLA", "GGLS" | 103 "ECWE", "ECWF", "EUBB", "EUBC", "GGLA", "GGLS" |
102 }; | 104 }; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 DCHECK(g_brand_for_testing == NULL); | 141 DCHECK(g_brand_for_testing == NULL); |
140 g_brand_for_testing = brand_.c_str(); | 142 g_brand_for_testing = brand_.c_str(); |
141 } | 143 } |
142 | 144 |
143 BrandForTesting::~BrandForTesting() { | 145 BrandForTesting::~BrandForTesting() { |
144 g_brand_for_testing = NULL; | 146 g_brand_for_testing = NULL; |
145 } | 147 } |
146 | 148 |
147 | 149 |
148 } // namespace google_brand | 150 } // namespace google_brand |
OLD | NEW |