| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 ConfiguratorImpl::~ConfiguratorImpl() {} | 126 ConfiguratorImpl::~ConfiguratorImpl() {} |
| 127 | 127 |
| 128 int ConfiguratorImpl::InitialDelay() const { | 128 int ConfiguratorImpl::InitialDelay() const { |
| 129 return fast_update_ ? 10 : (6 * kDelayOneMinute); | 129 return fast_update_ ? 10 : (6 * kDelayOneMinute); |
| 130 } | 130 } |
| 131 | 131 |
| 132 int ConfiguratorImpl::NextCheckDelay() const { | 132 int ConfiguratorImpl::NextCheckDelay() const { |
| 133 return 5 * kDelayOneHour; | 133 return 5 * kDelayOneHour; |
| 134 } | 134 } |
| 135 | 135 |
| 136 int ConfiguratorImpl::StepDelay() const { | |
| 137 return 1; | |
| 138 } | |
| 139 | |
| 140 int ConfiguratorImpl::OnDemandDelay() const { | 136 int ConfiguratorImpl::OnDemandDelay() const { |
| 141 return fast_update_ ? 2 : (30 * kDelayOneMinute); | 137 return fast_update_ ? 2 : (30 * kDelayOneMinute); |
| 142 } | 138 } |
| 143 | 139 |
| 144 int ConfiguratorImpl::UpdateDelay() const { | 140 int ConfiguratorImpl::UpdateDelay() const { |
| 145 return fast_update_ ? 10 : (15 * kDelayOneMinute); | 141 return fast_update_ ? 10 : (15 * kDelayOneMinute); |
| 146 } | 142 } |
| 147 | 143 |
| 148 std::vector<GURL> ConfiguratorImpl::UpdateUrl() const { | 144 std::vector<GURL> ConfiguratorImpl::UpdateUrl() const { |
| 149 std::vector<GURL> urls; | 145 std::vector<GURL> urls; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 196 |
| 201 bool ConfiguratorImpl::EnabledBackgroundDownloader() const { | 197 bool ConfiguratorImpl::EnabledBackgroundDownloader() const { |
| 202 return background_downloads_enabled_; | 198 return background_downloads_enabled_; |
| 203 } | 199 } |
| 204 | 200 |
| 205 bool ConfiguratorImpl::EnabledCupSigning() const { | 201 bool ConfiguratorImpl::EnabledCupSigning() const { |
| 206 return true; | 202 return true; |
| 207 } | 203 } |
| 208 | 204 |
| 209 } // namespace component_updater | 205 } // namespace component_updater |
| OLD | NEW |