Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/browser/component_updater/chrome_component_updater_configurator.cc

Issue 2873513002: Fix dependencies on OutOfProcessPatcher. (Closed)
Patch Set: base namespace fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_patcher_operation_out_of_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_patcher_operation_out_of_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698