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/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 "components/component_updater/browser/component_updater_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 namespace component_updater { | 20 namespace component_updater { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // Default time constants. | 24 // Default time constants. |
25 const int kDelayOneMinute = 60; | 25 const int kDelayOneMinute = 60; |
26 const int kDelayOneHour = kDelayOneMinute * 60; | 26 const int kDelayOneHour = kDelayOneMinute * 60; |
27 | 27 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 bool ChromeConfigurator::DeltasEnabled() const { | 203 bool ChromeConfigurator::DeltasEnabled() const { |
204 return deltas_enabled_; | 204 return deltas_enabled_; |
205 } | 205 } |
206 | 206 |
207 bool ChromeConfigurator::UseBackgroundDownloader() const { | 207 bool ChromeConfigurator::UseBackgroundDownloader() const { |
208 return background_downloads_enabled_; | 208 return background_downloads_enabled_; |
209 } | 209 } |
210 | 210 |
211 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator( | 211 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator( |
212 const CommandLine* cmdline, | 212 const base::CommandLine* cmdline, |
213 net::URLRequestContextGetter* context_getter) { | 213 net::URLRequestContextGetter* context_getter) { |
214 return new ChromeConfigurator(cmdline, context_getter); | 214 return new ChromeConfigurator(cmdline, context_getter); |
215 } | 215 } |
216 | 216 |
217 } // namespace component_updater | 217 } // namespace component_updater |
OLD | NEW |