Chromium Code Reviews| 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/component_updater/component_updater_service.h" | 5 #include "chrome/browser/component_updater/component_updater_service.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 #else | 63 #else |
| 64 "os=linux&arch=unknown&prod=chrome&prodversion="; | 64 "os=linux&arch=unknown&prod=chrome&prodversion="; |
| 65 #endif | 65 #endif |
| 66 #elif defined(OS_CHROMEOS) | 66 #elif defined(OS_CHROMEOS) |
| 67 #if defined(__i386__) | 67 #if defined(__i386__) |
| 68 "os=cros&arch=x86&prod=chrome&prodversion="; | 68 "os=cros&arch=x86&prod=chrome&prodversion="; |
| 69 #else | 69 #else |
| 70 // TODO(cpu): Fix this for ARM. | 70 // TODO(cpu): Fix this for ARM. |
| 71 "os=cros&arch=unknown&prod=chrome&prodversion="; | 71 "os=cros&arch=unknown&prod=chrome&prodversion="; |
| 72 #endif | 72 #endif |
| 73 #elif defined(OS_OPENBSD) | |
|
Elliot Glaysher
2011/10/18 17:25:44
+cpu
Is this OK? Will we barf if this is passed t
Robert Nagy
2011/10/18 17:29:28
Well I do not know, but it is a different platform
| |
| 74 #if defined(__amd64__) | |
| 75 "os=openbsd&arch=x64"; | |
| 76 #elif defined(__i386__) | |
| 77 "os=openbsd&arch=x86"; | |
| 78 #else | |
| 79 "os=openbsd&arch=unknown"; | |
| 80 #endif | |
| 73 #else | 81 #else |
| 74 #error "unknown os or architecture" | 82 #error "unknown os or architecture" |
| 75 #endif | 83 #endif |
| 76 | 84 |
| 77 } // namespace | 85 } // namespace |
| 78 | 86 |
| 79 class ChromeConfigurator : public ComponentUpdateService::Configurator { | 87 class ChromeConfigurator : public ComponentUpdateService::Configurator { |
| 80 public: | 88 public: |
| 81 ChromeConfigurator(const CommandLine* cmdline, | 89 ChromeConfigurator(const CommandLine* cmdline, |
| 82 net::URLRequestContextGetter* url_request_getter); | 90 net::URLRequestContextGetter* url_request_getter); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 default: | 185 default: |
| 178 NOTREACHED(); | 186 NOTREACHED(); |
| 179 break; | 187 break; |
| 180 } | 188 } |
| 181 } | 189 } |
| 182 | 190 |
| 183 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator( | 191 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator( |
| 184 const CommandLine* cmdline, net::URLRequestContextGetter* context_getter) { | 192 const CommandLine* cmdline, net::URLRequestContextGetter* context_getter) { |
| 185 return new ChromeConfigurator(cmdline, context_getter); | 193 return new ChromeConfigurator(cmdline, context_getter); |
| 186 } | 194 } |
| OLD | NEW |