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/user_cloud_policy_manager_chromeos.h" | 5 #include "chrome/browser/policy/user_cloud_policy_manager_chromeos.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "chrome/browser/policy/cloud_policy_service.h" | 9 #include "chrome/browser/policy/cloud_policy_service.h" |
| 10 #include "chrome/browser/policy/policy_namespace.h" |
10 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
11 | 12 |
12 namespace em = enterprise_management; | 13 namespace em = enterprise_management; |
13 | 14 |
14 namespace policy { | 15 namespace policy { |
15 | 16 |
16 UserCloudPolicyManagerChromeOS::UserCloudPolicyManagerChromeOS( | 17 UserCloudPolicyManagerChromeOS::UserCloudPolicyManagerChromeOS( |
17 scoped_ptr<CloudPolicyStore> store, | 18 scoped_ptr<CloudPolicyStore> store, |
18 bool wait_for_policy_fetch) | 19 bool wait_for_policy_fetch) |
19 : CloudPolicyManager( | 20 : CloudPolicyManager( |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 DCHECK_EQ(client(), cloud_policy_client); | 125 DCHECK_EQ(client(), cloud_policy_client); |
125 CancelWaitForPolicyFetch(); | 126 CancelWaitForPolicyFetch(); |
126 } | 127 } |
127 | 128 |
128 void UserCloudPolicyManagerChromeOS::OnInitialPolicyFetchComplete( | 129 void UserCloudPolicyManagerChromeOS::OnInitialPolicyFetchComplete( |
129 bool success) { | 130 bool success) { |
130 CancelWaitForPolicyFetch(); | 131 CancelWaitForPolicyFetch(); |
131 } | 132 } |
132 | 133 |
133 } // namespace policy | 134 } // namespace policy |
OLD | NEW |