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

Side by Side Diff: components/component_updater/configurator_impl.cc

Issue 2446273006: Simplify return expression in ConfiguratorImpl::StepDelay() (Closed)
Patch Set: Created 4 years, 1 month 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 | 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 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 int ConfiguratorImpl::InitialDelay() const { 124 int ConfiguratorImpl::InitialDelay() const {
125 return fast_update_ ? 10 : (6 * kDelayOneMinute); 125 return fast_update_ ? 10 : (6 * kDelayOneMinute);
126 } 126 }
127 127
128 int ConfiguratorImpl::NextCheckDelay() const { 128 int ConfiguratorImpl::NextCheckDelay() const {
129 return 6 * kDelayOneHour; 129 return 6 * kDelayOneHour;
130 } 130 }
131 131
132 int ConfiguratorImpl::StepDelay() const { 132 int ConfiguratorImpl::StepDelay() const {
133 return fast_update_ ? 1 : 1; 133 return 1;
134 } 134 }
135 135
136 int ConfiguratorImpl::OnDemandDelay() const { 136 int ConfiguratorImpl::OnDemandDelay() const {
137 return fast_update_ ? 2 : (30 * kDelayOneMinute); 137 return fast_update_ ? 2 : (30 * kDelayOneMinute);
138 } 138 }
139 139
140 int ConfiguratorImpl::UpdateDelay() const { 140 int ConfiguratorImpl::UpdateDelay() const {
141 return fast_update_ ? 10 : (15 * kDelayOneMinute); 141 return fast_update_ ? 10 : (15 * kDelayOneMinute);
142 } 142 }
143 143
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 bool ConfiguratorImpl::EnabledBackgroundDownloader() const { 191 bool ConfiguratorImpl::EnabledBackgroundDownloader() const {
192 return background_downloads_enabled_; 192 return background_downloads_enabled_;
193 } 193 }
194 194
195 bool ConfiguratorImpl::EnabledCupSigning() const { 195 bool ConfiguratorImpl::EnabledCupSigning() const {
196 return true; 196 return true;
197 } 197 }
198 198
199 } // namespace component_updater 199 } // namespace component_updater
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698