| 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 "components/policy/core/common/cloud/cloud_policy_service.h" | 5 #include "components/policy/core/common/cloud/cloud_policy_service.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/callback.h" | 9 #include "base/callback.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 9 #include "policy/proto/device_management_backend.pb.h" | 11 #include "policy/proto/device_management_backend.pb.h" |
| 10 | 12 |
| 11 namespace em = enterprise_management; | 13 namespace em = enterprise_management; |
| 12 | 14 |
| 13 namespace policy { | 15 namespace policy { |
| 14 | 16 |
| 15 CloudPolicyService::CloudPolicyService(const std::string& policy_type, | 17 CloudPolicyService::CloudPolicyService(const std::string& policy_type, |
| 16 const std::string& settings_entity_id, | 18 const std::string& settings_entity_id, |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 185 |
| 184 void CloudPolicyService::AddObserver(Observer* observer) { | 186 void CloudPolicyService::AddObserver(Observer* observer) { |
| 185 observers_.AddObserver(observer); | 187 observers_.AddObserver(observer); |
| 186 } | 188 } |
| 187 | 189 |
| 188 void CloudPolicyService::RemoveObserver(Observer* observer) { | 190 void CloudPolicyService::RemoveObserver(Observer* observer) { |
| 189 observers_.RemoveObserver(observer); | 191 observers_.RemoveObserver(observer); |
| 190 } | 192 } |
| 191 | 193 |
| 192 } // namespace policy | 194 } // namespace policy |
| OLD | NEW |