| 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 const std::string& component_id, | 16 const std::string& component_id, |
| 17 Observer* observer) {} | 17 Observer* observer) {} |
| 18 | 18 |
| 19 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, | 19 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, |
| 20 const std::string& component_id, | 20 const std::string& component_id, |
| 21 Observer* observer) {} | 21 Observer* observer) {} |
| 22 | 22 |
| 23 const PolicyMap* PolicyServiceStub::GetPolicies( | 23 const PolicyMap& PolicyServiceStub::GetPolicies( |
| 24 PolicyDomain domain, | 24 PolicyDomain domain, |
| 25 const std::string& component_id) const { | 25 const std::string& component_id) const { |
| 26 return NULL; | 26 return kEmpty_; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 bool PolicyServiceStub::IsInitializationComplete() const { | 29 bool PolicyServiceStub::IsInitializationComplete() const { |
| 30 return true; | 30 return true; |
| 31 } | 31 } |
| 32 | 32 |
| 33 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { | 33 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { |
| 34 if (!callback.is_null()) | 34 if (!callback.is_null()) |
| 35 callback.Run(); | 35 callback.Run(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace policy | 38 } // namespace policy |
| OLD | NEW |