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

Side by Side Diff: ios/chrome/browser/component_updater/ios_component_updater_configurator.cc

Issue 2199423002: Mechanical change in the component updater Configurator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 | « components/update_client/update_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/component_updater/ios_component_updater_configurato r.h" 5 #include "ios/chrome/browser/component_updater/ios_component_updater_configurato r.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 25 matching lines...) Expand all
36 base::Version GetBrowserVersion() const override; 36 base::Version GetBrowserVersion() const override;
37 std::string GetChannel() const override; 37 std::string GetChannel() const override;
38 std::string GetBrand() const override; 38 std::string GetBrand() const override;
39 std::string GetLang() const override; 39 std::string GetLang() const override;
40 std::string GetOSLongName() const override; 40 std::string GetOSLongName() const override;
41 std::string ExtraRequestParams() const override; 41 std::string ExtraRequestParams() const override;
42 std::string GetDownloadPreference() const override; 42 std::string GetDownloadPreference() const override;
43 net::URLRequestContextGetter* RequestContext() const override; 43 net::URLRequestContextGetter* RequestContext() const override;
44 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() 44 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher()
45 const override; 45 const override;
46 bool DeltasEnabled() const override; 46 bool EnabledDeltas() const override;
47 bool UseBackgroundDownloader() const override; 47 bool EnabledComponentUpdates() const override;
48 bool UseCupSigning() const override; 48 bool EnabledBackgroundDownloader() const override;
49 bool EnabledCupSigning() const override;
49 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 50 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
50 const override; 51 const override;
51 PrefService* GetPrefService() const override; 52 PrefService* GetPrefService() const override;
52 53
53 private: 54 private:
54 friend class base::RefCountedThreadSafe<IOSConfigurator>; 55 friend class base::RefCountedThreadSafe<IOSConfigurator>;
55 56
56 ConfiguratorImpl configurator_impl_; 57 ConfiguratorImpl configurator_impl_;
57 58
58 ~IOSConfigurator() override {} 59 ~IOSConfigurator() override {}
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 127
127 net::URLRequestContextGetter* IOSConfigurator::RequestContext() const { 128 net::URLRequestContextGetter* IOSConfigurator::RequestContext() const {
128 return configurator_impl_.RequestContext(); 129 return configurator_impl_.RequestContext();
129 } 130 }
130 131
131 scoped_refptr<update_client::OutOfProcessPatcher> 132 scoped_refptr<update_client::OutOfProcessPatcher>
132 IOSConfigurator::CreateOutOfProcessPatcher() const { 133 IOSConfigurator::CreateOutOfProcessPatcher() const {
133 return nullptr; 134 return nullptr;
134 } 135 }
135 136
136 bool IOSConfigurator::DeltasEnabled() const { 137 bool IOSConfigurator::EnabledDeltas() const {
137 return configurator_impl_.DeltasEnabled(); 138 return configurator_impl_.EnabledDeltas();
138 } 139 }
139 140
140 bool IOSConfigurator::UseBackgroundDownloader() const { 141 bool IOSConfigurator::EnabledComponentUpdates() const {
141 return configurator_impl_.UseBackgroundDownloader(); 142 return configurator_impl_.EnabledBackgroundDownloader();
rohitrao (ping after 24h) 2016/08/02 20:17:37 Should this be calling configurator_impl_.EnabledC
Sorin Jianu 2016/08/02 20:24:38 Yes. Thank you!
142 } 143 }
143 144
144 bool IOSConfigurator::UseCupSigning() const { 145 bool IOSConfigurator::EnabledBackgroundDownloader() const {
145 return configurator_impl_.UseCupSigning(); 146 return configurator_impl_.EnabledBackgroundDownloader();
147 }
148
149 bool IOSConfigurator::EnabledCupSigning() const {
150 return configurator_impl_.EnabledCupSigning();
146 } 151 }
147 152
148 scoped_refptr<base::SequencedTaskRunner> 153 scoped_refptr<base::SequencedTaskRunner>
149 IOSConfigurator::GetSequencedTaskRunner() const { 154 IOSConfigurator::GetSequencedTaskRunner() const {
150 return web::WebThread::GetBlockingPool() 155 return web::WebThread::GetBlockingPool()
151 ->GetSequencedTaskRunnerWithShutdownBehavior( 156 ->GetSequencedTaskRunnerWithShutdownBehavior(
152 web::WebThread::GetBlockingPool()->GetSequenceToken(), 157 web::WebThread::GetBlockingPool()->GetSequenceToken(),
153 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); 158 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
154 } 159 }
155 160
156 PrefService* IOSConfigurator::GetPrefService() const { 161 PrefService* IOSConfigurator::GetPrefService() const {
157 return GetApplicationContext()->GetLocalState(); 162 return GetApplicationContext()->GetLocalState();
158 } 163 }
159 164
160 } // namespace 165 } // namespace
161 166
162 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( 167 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator(
163 const base::CommandLine* cmdline, 168 const base::CommandLine* cmdline,
164 net::URLRequestContextGetter* context_getter) { 169 net::URLRequestContextGetter* context_getter) {
165 return new IOSConfigurator(cmdline, context_getter); 170 return new IOSConfigurator(cmdline, context_getter);
166 } 171 }
167 172
168 } // namespace component_updater 173 } // namespace component_updater
OLDNEW
« no previous file with comments | « components/update_client/update_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698