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

Side by Side Diff: src/policy.cc

Issue 5180003: cashew: add local byte counters (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: Address jglasgow and zelidrag (offline) code review comments 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/policy.h ('k') | src/procfs_byte_counter.h » ('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/policy.h" 5 #include "src/policy.h"
6 6
7 #include "src/default_policy.h" 7 #include "src/default_policy.h"
8 8
9 namespace cashew { 9 namespace cashew {
10 10
11 // static
11 Policy* Policy::GetPolicy(const std::string& carrier) { 12 Policy* Policy::GetPolicy(const std::string& carrier) {
12 // for now, everyone gets the default policy 13 // for now, everyone gets the default policy
13 return new(std::nothrow) DefaultPolicy(carrier); 14 return new(std::nothrow) DefaultPolicy(carrier);
14 } 15 }
15 16
16 } // namespace cashew 17 } // namespace cashew
OLDNEW
« no previous file with comments | « src/policy.h ('k') | src/procfs_byte_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698