Chromium Code Reviews| 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/common/omaha_query_params.h" | 5 #include "chrome/common/omaha_query_params.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
| 10 #include "chrome/common/chrome_version_info.h" | 10 #include "chrome/common/chrome_version_info.h" |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 #error "unknown os" | 32 #error "unknown os" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 const char kArch[] = | 35 const char kArch[] = |
| 36 #if defined(__amd64__) || defined(_WIN64) | 36 #if defined(__amd64__) || defined(_WIN64) |
| 37 "x64"; | 37 "x64"; |
| 38 #elif defined(__i386__) || defined(_WIN32) | 38 #elif defined(__i386__) || defined(_WIN32) |
| 39 "x86"; | 39 "x86"; |
| 40 #elif defined(__arm__) | 40 #elif defined(__arm__) |
| 41 "arm"; | 41 "arm"; |
| 42 #elif defined(__mips__) | |
| 43 "mipsel"; | |
|
asargent_no_longer_on_chrome
2013/04/18 21:39:35
Is it intended that this differs from the value be
petarj
2013/04/18 23:39:17
Yes, naming scheme for MIPS was discussed previous
| |
| 42 #else | 44 #else |
| 43 #error "unknown arch" | 45 #error "unknown arch" |
| 44 #endif | 46 #endif |
| 45 | 47 |
| 46 const char kChrome[] = "chrome"; | 48 const char kChrome[] = "chrome"; |
| 47 const char kChromeCrx[] = "chromecrx"; | 49 const char kChromeCrx[] = "chromecrx"; |
| 48 const char kChromiumCrx[] = "chromiumcrx"; | 50 const char kChromiumCrx[] = "chromiumcrx"; |
| 49 | 51 |
| 50 const char* GetProdIdString(chrome::OmahaQueryParams::ProdId prod) { | 52 const char* GetProdIdString(chrome::OmahaQueryParams::ProdId prod) { |
| 51 switch (prod) { | 53 switch (prod) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 #elif defined(ARCH_CPU_MIPSEL) | 132 #elif defined(ARCH_CPU_MIPSEL) |
| 131 return "mips32"; | 133 return "mips32"; |
| 132 #else | 134 #else |
| 133 // NOTE: when adding new values here, please remember to update the | 135 // NOTE: when adding new values here, please remember to update the |
| 134 // comment in the .h file about possible return values from this function. | 136 // comment in the .h file about possible return values from this function. |
| 135 #error "You need to add support for your architecture here" | 137 #error "You need to add support for your architecture here" |
| 136 #endif | 138 #endif |
| 137 } | 139 } |
| 138 | 140 |
| 139 } // namespace chrome | 141 } // namespace chrome |
| OLD | NEW |