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

Side by Side Diff: src/default_policy.cc

Issue 4201001: cashew: default policy: reduce request timer frequency (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « src/Makefile.am ('k') | src/default_policy_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 "src/default_policy.h" 5 #include "src/default_policy.h"
6 6
7 #include <glog/logging.h> 7 #include <glog/logging.h>
8 8
9 namespace cashew { 9 namespace cashew {
10 10
11 // default update timer interval in seconds 11 // default update timer interval in seconds
12 static const guint kDefaultPolicyUpdateTimerIdleSecs = 60; 12 static const guint kSecondsPerMinute = 60;
13 static const guint kDefaultPolicyUpdateTimerIdleSecs = 10 * kSecondsPerMinute;
13 14
14 DefaultPolicy::DefaultPolicy(const std::string& carrier) : carrier_(carrier) { 15 DefaultPolicy::DefaultPolicy(const std::string& carrier) : carrier_(carrier) {
15 } 16 }
16 17
17 DefaultPolicy::~DefaultPolicy() { 18 DefaultPolicy::~DefaultPolicy() {
18 } 19 }
19 20
20 const std::string& DefaultPolicy::GetCarrier() const { 21 const std::string& DefaultPolicy::GetCarrier() const {
21 return carrier_; 22 return carrier_;
22 } 23 }
(...skipping 12 matching lines...) Expand all
35 return true; 36 return true;
36 } 37 }
37 38
38 bool DefaultPolicy::ZonelessTimeStringsAreLocal() const { 39 bool DefaultPolicy::ZonelessTimeStringsAreLocal() const {
39 return true; 40 return true;
40 } 41 }
41 42
42 // private methods 43 // private methods
43 44
44 } // namespace cashew 45 } // namespace cashew
OLDNEW
« no previous file with comments | « src/Makefile.am ('k') | src/default_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698