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

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

Issue 138553004: Move component updater artifacts into component_updater namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
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/component_updater/component_updater_configurator.h" 5 #include "chrome/browser/component_updater/component_updater_configurator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/win/windows_version.h" 14 #include "base/win/windows_version.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/browser/component_updater/component_patcher.h" 16 #include "chrome/browser/component_updater/component_patcher.h"
17 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
18 #include "net/url_request/url_request_context_getter.h" 18 #include "net/url_request/url_request_context_getter.h"
19 19
20 #if defined(OS_WIN) 20 #if defined(OS_WIN)
21 #include "chrome/browser/component_updater/component_patcher_win.h" 21 #include "chrome/browser/component_updater/component_patcher_win.h"
22 #endif 22 #endif
23 23
24 namespace component_updater {
25
24 namespace { 26 namespace {
25 27
26 // Default time constants. 28 // Default time constants.
27 const int kDelayOneMinute = 60; 29 const int kDelayOneMinute = 60;
28 const int kDelayOneHour = kDelayOneMinute * 60; 30 const int kDelayOneHour = kDelayOneMinute * 60;
29 31
30 // Debug values you can pass to --component-updater=value1,value2. 32 // Debug values you can pass to --component-updater=value1,value2.
31 // Speed up component checking. 33 // Speed up component checking.
32 const char kSwitchFastUpdate[] = "fast-update"; 34 const char kSwitchFastUpdate[] = "fast-update";
33 35
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 215 }
214 216
215 bool ChromeConfigurator::UseBackgroundDownloader() const { 217 bool ChromeConfigurator::UseBackgroundDownloader() const {
216 return background_downloads_enabled_; 218 return background_downloads_enabled_;
217 } 219 }
218 220
219 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator( 221 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator(
220 const CommandLine* cmdline, net::URLRequestContextGetter* context_getter) { 222 const CommandLine* cmdline, net::URLRequestContextGetter* context_getter) {
221 return new ChromeConfigurator(cmdline, context_getter); 223 return new ChromeConfigurator(cmdline, context_getter);
222 } 224 }
225
226 } // namespace component_updater
227
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698