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

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

Issue 1861383004: Add module for counting date-last-roll-call and persisting those counts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another test fix. Created 4 years, 8 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_response.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 30 matching lines...) Expand all
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 DeltasEnabled() const override;
47 bool UseBackgroundDownloader() const override; 47 bool UseBackgroundDownloader() const override;
48 bool UseCupSigning() const override; 48 bool UseCupSigning() const override;
49 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 49 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
50 const override; 50 const override;
51 PrefService* GetPrefService() const override;
51 52
52 private: 53 private:
53 friend class base::RefCountedThreadSafe<IOSConfigurator>; 54 friend class base::RefCountedThreadSafe<IOSConfigurator>;
54 55
55 ConfiguratorImpl configurator_impl_; 56 ConfiguratorImpl configurator_impl_;
56 57
57 ~IOSConfigurator() override {} 58 ~IOSConfigurator() override {}
58 }; 59 };
59 60
60 // Allows the component updater to use non-encrypted communication with the 61 // Allows the component updater to use non-encrypted communication with the
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 146 }
146 147
147 scoped_refptr<base::SequencedTaskRunner> 148 scoped_refptr<base::SequencedTaskRunner>
148 IOSConfigurator::GetSequencedTaskRunner() const { 149 IOSConfigurator::GetSequencedTaskRunner() const {
149 return web::WebThread::GetBlockingPool() 150 return web::WebThread::GetBlockingPool()
150 ->GetSequencedTaskRunnerWithShutdownBehavior( 151 ->GetSequencedTaskRunnerWithShutdownBehavior(
151 web::WebThread::GetBlockingPool()->GetSequenceToken(), 152 web::WebThread::GetBlockingPool()->GetSequenceToken(),
152 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); 153 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
153 } 154 }
154 155
156 PrefService* IOSConfigurator::GetPrefService() const {
157 return nullptr;
158 }
159
155 } // namespace 160 } // namespace
156 161
157 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( 162 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator(
158 const base::CommandLine* cmdline, 163 const base::CommandLine* cmdline,
159 net::URLRequestContextGetter* context_getter) { 164 net::URLRequestContextGetter* context_getter) {
160 return new IOSConfigurator(cmdline, context_getter); 165 return new IOSConfigurator(cmdline, context_getter);
161 } 166 }
162 167
163 } // namespace component_updater 168 } // namespace component_updater
OLDNEW
« no previous file with comments | « components/update_client/update_response.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698