OLD | NEW |
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/browser/google/google_util.h" | 5 #include "chrome/browser/google/google_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/mac/keystone_glue.h" | 25 #include "chrome/browser/mac/keystone_glue.h" |
26 #elif defined(OS_CHROMEOS) | 26 #elif defined(OS_CHROMEOS) |
27 #include "chrome/browser/google/google_util_chromeos.h" | 27 #include "chrome/browser/google/google_util_chromeos.h" |
28 #endif | 28 #endif |
29 | 29 |
30 #if defined(GOOGLE_CHROME_BUILD) | 30 #if defined(GOOGLE_CHROME_BUILD) |
31 #include "chrome/browser/google/linkdoctor_internal/linkdoctor_internal.h" | 31 #include "chrome/browser/google/linkdoctor_internal/linkdoctor_internal.h" |
32 #endif | 32 #endif |
33 | 33 |
34 #ifndef LINKDOCTOR_SERVER_REQUEST_URL | 34 #ifndef LINKDOCTOR_SERVER_REQUEST_URL |
35 #define LINKDOCTOR_SERVER_REQUEST_URL "" | 35 #define LINKDOCTOR_SERVER_REQUEST_URL std::string() |
36 #endif | 36 #endif |
37 | 37 |
38 namespace { | 38 namespace { |
39 | 39 |
40 const char* brand_for_testing = NULL; | 40 const char* brand_for_testing = NULL; |
41 | 41 |
42 bool gUseMockLinkDoctorBaseURLForTesting = false; | 42 bool gUseMockLinkDoctorBaseURLForTesting = false; |
43 | 43 |
44 } // anonymous namespace | 44 } // anonymous namespace |
45 | 45 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 const char* const kBrands[] = { | 291 const char* const kBrands[] = { |
292 "CHIQ", "CHSG", "HLJY", "NTMO", "OOBA", "OOBB", "OOBC", "OOBD", "OOBE", | 292 "CHIQ", "CHSG", "HLJY", "NTMO", "OOBA", "OOBB", "OOBC", "OOBD", "OOBE", |
293 "OOBF", "OOBG", "OOBH", "OOBI", "OOBJ", "IDCM", | 293 "OOBF", "OOBG", "OOBH", "OOBI", "OOBJ", "IDCM", |
294 }; | 294 }; |
295 const char* const* end = &kBrands[arraysize(kBrands)]; | 295 const char* const* end = &kBrands[arraysize(kBrands)]; |
296 const char* const* found = std::find(&kBrands[0], end, brand); | 296 const char* const* found = std::find(&kBrands[0], end, brand); |
297 return found != end; | 297 return found != end; |
298 } | 298 } |
299 | 299 |
300 } // namespace google_util | 300 } // namespace google_util |
OLD | NEW |