| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| 11 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
| 12 #include "base/version.h" | 12 #include "base/version.h" |
| 13 #if defined(OS_WIN) | 13 #include "build/build_config.h" |
| 14 #include "base/win/win_util.h" | |
| 15 #endif | |
| 16 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr
ocess.h" | 15 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr
ocess.h" |
| 18 #include "chrome/browser/component_updater/component_updater_utils.h" | 16 #include "chrome/browser/component_updater/component_updater_utils.h" |
| 19 #include "chrome/browser/google/google_brand.h" | 17 #include "chrome/browser/google/google_brand.h" |
| 20 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" | 18 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" |
| 21 #include "chrome/common/channel_info.h" | 19 #include "chrome/common/channel_info.h" |
| 22 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
| 23 #if defined(OS_WIN) | |
| 24 #include "chrome/installer/util/google_update_settings.h" | |
| 25 #endif // OS_WIN | |
| 26 #include "components/component_updater/configurator_impl.h" | 21 #include "components/component_updater/configurator_impl.h" |
| 27 #include "components/prefs/pref_registry_simple.h" | 22 #include "components/prefs/pref_registry_simple.h" |
| 28 #include "components/prefs/pref_service.h" | 23 #include "components/prefs/pref_service.h" |
| 29 #include "components/update_client/update_query_params.h" | 24 #include "components/update_client/update_query_params.h" |
| 30 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
| 31 | 26 |
| 27 #if defined(OS_WIN) |
| 28 #include "base/win/win_util.h" |
| 29 #include "chrome/installer/util/google_update_settings.h" |
| 30 #endif |
| 31 |
| 32 namespace component_updater { | 32 namespace component_updater { |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 class ChromeConfigurator : public update_client::Configurator { | 36 class ChromeConfigurator : public update_client::Configurator { |
| 37 public: | 37 public: |
| 38 ChromeConfigurator(const base::CommandLine* cmdline, | 38 ChromeConfigurator(const base::CommandLine* cmdline, |
| 39 net::URLRequestContextGetter* url_request_getter, | 39 net::URLRequestContextGetter* url_request_getter, |
| 40 PrefService* pref_service); | 40 PrefService* pref_service); |
| 41 | 41 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 scoped_refptr<update_client::Configurator> | 217 scoped_refptr<update_client::Configurator> |
| 218 MakeChromeComponentUpdaterConfigurator( | 218 MakeChromeComponentUpdaterConfigurator( |
| 219 const base::CommandLine* cmdline, | 219 const base::CommandLine* cmdline, |
| 220 net::URLRequestContextGetter* context_getter, | 220 net::URLRequestContextGetter* context_getter, |
| 221 PrefService* pref_service) { | 221 PrefService* pref_service) { |
| 222 return new ChromeConfigurator(cmdline, context_getter, pref_service); | 222 return new ChromeConfigurator(cmdline, context_getter, pref_service); |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace component_updater | 225 } // namespace component_updater |
| OLD | NEW |