| 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" |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 PrefRegistrySimple* registry) { | 204 PrefRegistrySimple* registry) { |
| 205 // The component updates are enabled by default, if the preference is not set. | 205 // The component updates are enabled by default, if the preference is not set. |
| 206 registry->RegisterBooleanPref(prefs::kComponentUpdatesEnabled, true); | 206 registry->RegisterBooleanPref(prefs::kComponentUpdatesEnabled, true); |
| 207 } | 207 } |
| 208 | 208 |
| 209 scoped_refptr<update_client::Configurator> | 209 scoped_refptr<update_client::Configurator> |
| 210 MakeChromeComponentUpdaterConfigurator( | 210 MakeChromeComponentUpdaterConfigurator( |
| 211 const base::CommandLine* cmdline, | 211 const base::CommandLine* cmdline, |
| 212 net::URLRequestContextGetter* context_getter, | 212 net::URLRequestContextGetter* context_getter, |
| 213 PrefService* pref_service) { | 213 PrefService* pref_service) { |
| 214 return new ChromeConfigurator(cmdline, context_getter, pref_service); | 214 return base::MakeShared<ChromeConfigurator>(cmdline, context_getter, |
| 215 pref_service); |
| 215 } | 216 } |
| 216 | 217 |
| 217 } // namespace component_updater | 218 } // namespace component_updater |
| OLD | NEW |