Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: chrome/browser/component_updater/component_updater_configurator.cc

Issue 8344001: OpenBSD patches for chrome/content, split from CR #8275005 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add comment Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #elif defined(OS_LINUX) 66 #elif defined(OS_LINUX)
67 #if defined(__amd64__) 67 #if defined(__amd64__)
68 "os=linux&arch=x64&prod=chrome&prodversion="; 68 "os=linux&arch=x64&prod=chrome&prodversion=";
69 #elif defined(__i386__) 69 #elif defined(__i386__)
70 "os=linux&arch=x86&prod=chrome&prodversion="; 70 "os=linux&arch=x86&prod=chrome&prodversion=";
71 #elif defined(__arm__) 71 #elif defined(__arm__)
72 "os=linux&arch=arm&prod=chrome&prodversion="; 72 "os=linux&arch=arm&prod=chrome&prodversion=";
73 #else 73 #else
74 "os=linux&arch=unknown&prod=chrome&prodversion="; 74 "os=linux&arch=unknown&prod=chrome&prodversion=";
75 #endif 75 #endif
76 #elif defined(OS_OPENBSD)
77 #if defined(__amd64__)
78 "os=openbsd&arch=x64";
79 #elif defined(__i386__)
80 "os=openbsd&arch=x86";
81 #else
82 "os=openbsd&arch=unknown";
83 #endif
76 #else 84 #else
77 #error "unknown os or architecture" 85 #error "unknown os or architecture"
78 #endif 86 #endif
79 87
80 } // namespace 88 } // namespace
81 89
82 class ChromeConfigurator : public ComponentUpdateService::Configurator { 90 class ChromeConfigurator : public ComponentUpdateService::Configurator {
83 public: 91 public:
84 ChromeConfigurator(const CommandLine* cmdline, 92 ChromeConfigurator(const CommandLine* cmdline,
85 net::URLRequestContextGetter* url_request_getter); 93 net::URLRequestContextGetter* url_request_getter);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 default: 188 default:
181 NOTREACHED(); 189 NOTREACHED();
182 break; 190 break;
183 } 191 }
184 } 192 }
185 193
186 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator( 194 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator(
187 const CommandLine* cmdline, net::URLRequestContextGetter* context_getter) { 195 const CommandLine* cmdline, net::URLRequestContextGetter* context_getter) {
188 return new ChromeConfigurator(cmdline, context_getter); 196 return new ChromeConfigurator(cmdline, context_getter);
189 } 197 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698