| OLD | NEW |
| 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/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "chrome/browser/policy/policy_domain_descriptor.h" | |
| 9 | 8 |
| 10 namespace policy { | 9 namespace policy { |
| 11 | 10 |
| 12 PolicyServiceStub::PolicyServiceStub() {} | 11 PolicyServiceStub::PolicyServiceStub() {} |
| 13 | 12 |
| 14 PolicyServiceStub::~PolicyServiceStub() {} | 13 PolicyServiceStub::~PolicyServiceStub() {} |
| 15 | 14 |
| 16 void PolicyServiceStub::AddObserver(PolicyDomain domain, | 15 void PolicyServiceStub::AddObserver(PolicyDomain domain, |
| 17 Observer* observer) {} | 16 Observer* observer) {} |
| 18 | 17 |
| 19 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, | 18 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, |
| 20 Observer* observer) {} | 19 Observer* observer) {} |
| 21 | 20 |
| 22 void PolicyServiceStub::RegisterPolicyDomain( | |
| 23 scoped_refptr<const PolicyDomainDescriptor> descriptor) {} | |
| 24 | |
| 25 const PolicyMap& PolicyServiceStub::GetPolicies( | 21 const PolicyMap& PolicyServiceStub::GetPolicies( |
| 26 const PolicyNamespace& ns) const { | 22 const PolicyNamespace& ns) const { |
| 27 return kEmpty_; | 23 return kEmpty_; |
| 28 }; | 24 }; |
| 29 | 25 |
| 30 scoped_refptr<const PolicyDomainDescriptor> | |
| 31 PolicyServiceStub::GetPolicyDomainDescriptor(PolicyDomain domain) const { | |
| 32 return NULL; | |
| 33 } | |
| 34 | |
| 35 bool PolicyServiceStub::IsInitializationComplete(PolicyDomain domain) const { | 26 bool PolicyServiceStub::IsInitializationComplete(PolicyDomain domain) const { |
| 36 return true; | 27 return true; |
| 37 } | 28 } |
| 38 | 29 |
| 39 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { | 30 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { |
| 40 if (!callback.is_null()) | 31 if (!callback.is_null()) |
| 41 callback.Run(); | 32 callback.Run(); |
| 42 } | 33 } |
| 43 | 34 |
| 44 } // namespace policy | 35 } // namespace policy |
| OLD | NEW |