OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chrome_component_updater_configurator
.h" | 5 #include "chrome/browser/component_updater/chrome_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/version.h" | 14 #include "base/version.h" |
15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
16 #include "base/win/win_util.h" | 16 #include "base/win/win_util.h" |
17 #endif // OS_WIN | 17 #endif // OS_WIN |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr
ocess.h" | 19 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr
ocess.h" |
20 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" | 20 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" |
21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
22 #include "components/component_updater/component_updater_configurator.h" | |
23 #include "components/component_updater/component_updater_switches.h" | 22 #include "components/component_updater/component_updater_switches.h" |
| 23 #include "components/update_client/configurator.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
25 #include "net/url_request/url_request_context_getter.h" | 25 #include "net/url_request/url_request_context_getter.h" |
26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
27 | 27 |
| 28 using update_client::Configurator; |
| 29 using update_client::OutOfProcessPatcher; |
| 30 |
28 namespace component_updater { | 31 namespace component_updater { |
29 | 32 |
30 namespace { | 33 namespace { |
31 | 34 |
32 // Default time constants. | 35 // Default time constants. |
33 const int kDelayOneMinute = 60; | 36 const int kDelayOneMinute = 60; |
34 const int kDelayOneHour = kDelayOneMinute * 60; | 37 const int kDelayOneHour = kDelayOneMinute * 60; |
35 | 38 |
36 // Debug values you can pass to --component-updater=value1,value2. | 39 // Debug values you can pass to --component-updater=value1,value2. |
37 // Speed up component checking. | 40 // Speed up component checking. |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 287 |
285 } // namespace | 288 } // namespace |
286 | 289 |
287 Configurator* MakeChromeComponentUpdaterConfigurator( | 290 Configurator* MakeChromeComponentUpdaterConfigurator( |
288 const base::CommandLine* cmdline, | 291 const base::CommandLine* cmdline, |
289 net::URLRequestContextGetter* context_getter) { | 292 net::URLRequestContextGetter* context_getter) { |
290 return new ChromeConfigurator(cmdline, context_getter); | 293 return new ChromeConfigurator(cmdline, context_getter); |
291 } | 294 } |
292 | 295 |
293 } // namespace component_updater | 296 } // namespace component_updater |
OLD | NEW |