| 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/device_local_account_policy_provider.h" | 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/policy/cloud_policy_service.h" | 8 #include "chrome/browser/policy/cloud/cloud_policy_service.h" |
| 9 #include "chrome/browser/policy/policy_bundle.h" | 9 #include "chrome/browser/policy/policy_bundle.h" |
| 10 #include "chrome/browser/policy/policy_service.h" | 10 #include "chrome/browser/policy/policy_service.h" |
| 11 | 11 |
| 12 namespace policy { | 12 namespace policy { |
| 13 | 13 |
| 14 DeviceLocalAccountPolicyProvider::DeviceLocalAccountPolicyProvider( | 14 DeviceLocalAccountPolicyProvider::DeviceLocalAccountPolicyProvider( |
| 15 const std::string& account_id, | 15 const std::string& account_id, |
| 16 DeviceLocalAccountPolicyService* service) | 16 DeviceLocalAccountPolicyService* service) |
| 17 : account_id_(account_id), | 17 : account_id_(account_id), |
| 18 service_(service), | 18 service_(service), |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } else { | 81 } else { |
| 82 // Keep existing policy, but do send an update. | 82 // Keep existing policy, but do send an update. |
| 83 waiting_for_policy_refresh_ = false; | 83 waiting_for_policy_refresh_ = false; |
| 84 weak_factory_.InvalidateWeakPtrs(); | 84 weak_factory_.InvalidateWeakPtrs(); |
| 85 bundle->CopyFrom(policies()); | 85 bundle->CopyFrom(policies()); |
| 86 } | 86 } |
| 87 UpdatePolicy(bundle.Pass()); | 87 UpdatePolicy(bundle.Pass()); |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace policy | 90 } // namespace policy |
| OLD | NEW |