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

Side by Side Diff: chrome/browser/policy/policy_service_stub.cc

Issue 16254003: WIP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/policy/policy_service_stub.h" 5 #include "chrome/browser/policy/policy_service_stub.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 8
9 namespace policy { 9 namespace policy {
10 10
11 PolicyServiceStub::PolicyServiceStub() {} 11 PolicyServiceStub::PolicyServiceStub() {}
12 12
13 PolicyServiceStub::~PolicyServiceStub() {} 13 PolicyServiceStub::~PolicyServiceStub() {}
14 14
15 void PolicyServiceStub::AddObserver(PolicyDomain domain, 15 void PolicyServiceStub::AddObserver(PolicyDomain domain,
16 Observer* observer) {} 16 Observer* observer) {}
17 17
18 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, 18 void PolicyServiceStub::RemoveObserver(PolicyDomain domain,
19 Observer* observer) {} 19 Observer* observer) {}
20 20
21 void PolicyServiceStub::RegisterPolicyDomain( 21 void PolicyServiceStub::RegisterPolicyDomain(
22 PolicyDomain domain, 22 PolicyDomain domain,
23 const std::set<std::string>& components) {} 23 const std::set<std::string>& components) {}
24 24
25 const PolicyMap& PolicyServiceStub::GetPolicies( 25 const PolicyMap& PolicyServiceStub::GetPolicies(
26 const PolicyNamespace& ns) const { 26 const PolicyNamespace& ns) const {
27 return kEmpty_; 27 return kEmptyMap_;
28 };
29
30 const PolicyBundle& PolicyServiceStub::GetAllPolicies() const {
31 return kEmptyBundle_;
28 }; 32 };
29 33
30 bool PolicyServiceStub::IsInitializationComplete(PolicyDomain domain) const { 34 bool PolicyServiceStub::IsInitializationComplete(PolicyDomain domain) const {
31 return true; 35 return true;
32 } 36 }
33 37
34 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { 38 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) {
35 if (!callback.is_null()) 39 if (!callback.is_null())
36 callback.Run(); 40 callback.Run();
37 } 41 }
38 42
39 } // namespace policy 43 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_service_stub.h ('k') | chrome/browser/policy/policy_statistics_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698