| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_util.h" | 5 #include "chrome/browser/google/google_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // An empty brand string on Mac is used for channels other than stable, | 169 // An empty brand string on Mac is used for channels other than stable, |
| 170 // which are always organic. | 170 // which are always organic. |
| 171 return true; | 171 return true; |
| 172 } | 172 } |
| 173 #endif | 173 #endif |
| 174 | 174 |
| 175 return StartsWithASCII(brand, "GG", true) || | 175 return StartsWithASCII(brand, "GG", true) || |
| 176 StartsWithASCII(brand, "EU", true); | 176 StartsWithASCII(brand, "EU", true); |
| 177 } | 177 } |
| 178 | 178 |
| 179 bool IsInternetCafeBrandCode(const std::string& brand) { |
| 180 const char* const kBrands[] = { |
| 181 "CHIQ", "CHSG", "HLJY", "NTMO", "OOBA", "OOBB", "OOBC", "OOBD", "OOBE", |
| 182 "OOBF", "OOBG", "OOBH", "OOBI", "OOBJ", |
| 183 }; |
| 184 const char* const* end = &kBrands[arraysize(kBrands)]; |
| 185 const char* const* found = std::find(&kBrands[0], end, brand); |
| 186 return found != end; |
| 187 } |
| 188 |
| 179 } // namespace google_util | 189 } // namespace google_util |
| OLD | NEW |