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 "components/component_updater/configurator_impl.h" | 5 #include "components/component_updater/configurator_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 | 176 |
177 std::string ConfiguratorImpl::GetOSLongName() const { | 177 std::string ConfiguratorImpl::GetOSLongName() const { |
178 return version_info::GetOSType(); | 178 return version_info::GetOSType(); |
179 } | 179 } |
180 | 180 |
181 std::string ConfiguratorImpl::ExtraRequestParams() const { | 181 std::string ConfiguratorImpl::ExtraRequestParams() const { |
182 return extra_info_; | 182 return extra_info_; |
183 } | 183 } |
184 | 184 |
| 185 std::string ConfiguratorImpl::GetDownloadPreference() const { |
| 186 return std::string(); |
| 187 } |
| 188 |
185 net::URLRequestContextGetter* ConfiguratorImpl::RequestContext() const { | 189 net::URLRequestContextGetter* ConfiguratorImpl::RequestContext() const { |
186 return url_request_getter_; | 190 return url_request_getter_; |
187 } | 191 } |
188 | 192 |
189 bool ConfiguratorImpl::DeltasEnabled() const { | 193 bool ConfiguratorImpl::DeltasEnabled() const { |
190 return deltas_enabled_; | 194 return deltas_enabled_; |
191 } | 195 } |
192 | 196 |
193 bool ConfiguratorImpl::UseBackgroundDownloader() const { | 197 bool ConfiguratorImpl::UseBackgroundDownloader() const { |
194 return background_downloads_enabled_; | 198 return background_downloads_enabled_; |
195 } | 199 } |
196 | 200 |
197 void ConfiguratorImpl::set_enable_alt_source_url(bool enable_alt_source_url) { | 201 void ConfiguratorImpl::set_enable_alt_source_url(bool enable_alt_source_url) { |
198 fallback_to_alt_source_url_enabled_ = enable_alt_source_url; | 202 fallback_to_alt_source_url_enabled_ = enable_alt_source_url; |
199 } | 203 } |
200 | 204 |
201 } // namespace component_updater | 205 } // namespace component_updater |
OLD | NEW |