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

Unified Diff: src/policy.cc

Issue 3528016: Cashew: implement backend usage API (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git
Patch Set: Fix code review nits and remove hardcoded usage URLs Created 10 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/policy.h ('k') | src/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/policy.cc
diff --git a/src/policy.cc b/src/policy.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1f5b9f60f72870010ad9fef0ac208193223935e0
--- /dev/null
+++ b/src/policy.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "src/policy.h"
+
+#include "src/default_policy.h"
+
+namespace cashew {
+
+Policy* Policy::GetPolicy(const std::string& carrier) {
+ // for now, everyone gets the default policy
+ return new(std::nothrow) DefaultPolicy(carrier);
+}
+
+} // namespace cashew
« no previous file with comments | « src/policy.h ('k') | src/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698