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/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/omaha_query_params/omaha_query_params.h" | 18 #include "chrome/common/omaha_query_params/omaha_query_params.h" |
19 #include "net/url_request/url_request_context_getter.h" | 19 #include "net/url_request/url_request_context_getter.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 // Default time constants. | 22 // Default time constants. |
23 const int kDelayOneMinute = 60; | 23 const int kDelayOneMinute = 60; |
24 const int kDelayOneHour = kDelayOneMinute * 60; | 24 const int kDelayOneHour = kDelayOneMinute * 60; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 default: | 158 default: |
159 NOTREACHED(); | 159 NOTREACHED(); |
160 break; | 160 break; |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator( | 164 ComponentUpdateService::Configurator* MakeChromeComponentUpdaterConfigurator( |
165 const CommandLine* cmdline, net::URLRequestContextGetter* context_getter) { | 165 const CommandLine* cmdline, net::URLRequestContextGetter* context_getter) { |
166 return new ChromeConfigurator(cmdline, context_getter); | 166 return new ChromeConfigurator(cmdline, context_getter); |
167 } | 167 } |
OLD | NEW |