| 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.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 scoped_refptr<const PolicyDomainDescriptor> descriptor) {} |
| 23 const std::set<std::string>& components) {} | |
| 24 | 23 |
| 25 const PolicyMap& PolicyServiceStub::GetPolicies( | 24 const PolicyMap& PolicyServiceStub::GetPolicies( |
| 26 const PolicyNamespace& ns) const { | 25 const PolicyNamespace& ns) const { |
| 27 return kEmpty_; | 26 return kEmpty_; |
| 28 }; | 27 }; |
| 29 | 28 |
| 30 bool PolicyServiceStub::IsInitializationComplete(PolicyDomain domain) const { | 29 bool PolicyServiceStub::IsInitializationComplete(PolicyDomain domain) const { |
| 31 return true; | 30 return true; |
| 32 } | 31 } |
| 33 | 32 |
| 34 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { | 33 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { |
| 35 if (!callback.is_null()) | 34 if (!callback.is_null()) |
| 36 callback.Run(); | 35 callback.Run(); |
| 37 } | 36 } |
| 38 | 37 |
| 39 } // namespace policy | 38 } // namespace policy |
| OLD | NEW |