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/omaha_query_params/omaha_query_params.h" | 5 #include "chrome/browser/omaha_query_params/omaha_query_params.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #error "unknown os" | 33 #error "unknown os" |
34 #endif | 34 #endif |
35 | 35 |
36 const char kArch[] = | 36 const char kArch[] = |
37 #if defined(__amd64__) || defined(_WIN64) | 37 #if defined(__amd64__) || defined(_WIN64) |
38 "x64"; | 38 "x64"; |
39 #elif defined(__i386__) || defined(_WIN32) | 39 #elif defined(__i386__) || defined(_WIN32) |
40 "x86"; | 40 "x86"; |
41 #elif defined(__arm__) | 41 #elif defined(__arm__) |
42 "arm"; | 42 "arm"; |
43 #elif defined(__arm64__) | 43 #elif defined(__aarch64__) |
44 "arm64"; | 44 "arm64"; |
45 #elif defined(__mips__) | 45 #elif defined(__mips__) |
46 "mipsel"; | 46 "mipsel"; |
47 #else | 47 #else |
48 #error "unknown arch" | 48 #error "unknown arch" |
49 #endif | 49 #endif |
50 | 50 |
51 const char kChrome[] = "chrome"; | 51 const char kChrome[] = "chrome"; |
52 | 52 |
53 const char kStable[] = "stable"; | 53 const char kStable[] = "stable"; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 break; | 151 break; |
152 } | 152 } |
153 return kUnknown; | 153 return kUnknown; |
154 } | 154 } |
155 | 155 |
156 const char* OmahaQueryParams::GetLang() { | 156 const char* OmahaQueryParams::GetLang() { |
157 return g_browser_process->GetApplicationLocale().c_str(); | 157 return g_browser_process->GetApplicationLocale().c_str(); |
158 } | 158 } |
159 | 159 |
160 } // namespace chrome | 160 } // namespace chrome |
OLD | NEW |