| 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/cloud_policy_client.h" | 5 #include "chrome/browser/policy/cloud/cloud_policy_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/guid.h" | 8 #include "base/guid.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "chrome/browser/policy/device_management_service.h" | 11 #include "chrome/browser/policy/cloud/device_management_service.h" |
| 12 | 12 |
| 13 namespace em = enterprise_management; | 13 namespace em = enterprise_management; |
| 14 | 14 |
| 15 namespace policy { | 15 namespace policy { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 // Translates the DeviceRegisterResponse::DeviceMode |mode| to the enum used | 19 // Translates the DeviceRegisterResponse::DeviceMode |mode| to the enum used |
| 20 // internally to represent different device modes. | 20 // internally to represent different device modes. |
| 21 DeviceMode TranslateProtobufDeviceMode( | 21 DeviceMode TranslateProtobufDeviceMode( |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 void CloudPolicyClient::NotifyRegistrationStateChanged() { | 318 void CloudPolicyClient::NotifyRegistrationStateChanged() { |
| 319 FOR_EACH_OBSERVER(Observer, observers_, OnRegistrationStateChanged(this)); | 319 FOR_EACH_OBSERVER(Observer, observers_, OnRegistrationStateChanged(this)); |
| 320 } | 320 } |
| 321 | 321 |
| 322 void CloudPolicyClient::NotifyClientError() { | 322 void CloudPolicyClient::NotifyClientError() { |
| 323 FOR_EACH_OBSERVER(Observer, observers_, OnClientError(this)); | 323 FOR_EACH_OBSERVER(Observer, observers_, OnClientError(this)); |
| 324 } | 324 } |
| 325 | 325 |
| 326 } // namespace policy | 326 } // namespace policy |
| OLD | NEW |