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/user_cloud_policy_manager.h" | 5 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.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 "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
10 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" | 10 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" |
11 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 11 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
12 #include "chrome/browser/policy/cloud/cloud_policy_service.h" | 12 #include "chrome/browser/policy/cloud/cloud_policy_service.h" |
13 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 13 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
14 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" | 14 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" |
15 #include "chrome/browser/policy/policy_types.h" | |
16 #include "components/policy/core/common/policy_pref_names.h" | 15 #include "components/policy/core/common/policy_pref_names.h" |
| 16 #include "components/policy/core/common/policy_types.h" |
17 #include "net/url_request/url_request_context_getter.h" | 17 #include "net/url_request/url_request_context_getter.h" |
18 | 18 |
19 namespace em = enterprise_management; | 19 namespace em = enterprise_management; |
20 | 20 |
21 namespace policy { | 21 namespace policy { |
22 | 22 |
23 UserCloudPolicyManager::UserCloudPolicyManager( | 23 UserCloudPolicyManager::UserCloudPolicyManager( |
24 content::BrowserContext* context, | 24 content::BrowserContext* context, |
25 scoped_ptr<UserCloudPolicyStore> store, | 25 scoped_ptr<UserCloudPolicyStore> store, |
26 scoped_ptr<CloudExternalDataManager> external_data_manager, | 26 scoped_ptr<CloudExternalDataManager> external_data_manager, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // all external data references have been removed, causing the | 80 // all external data references have been removed, causing the |
81 // |external_data_manager_| to clear its cache as well. | 81 // |external_data_manager_| to clear its cache as well. |
82 store_->Clear(); | 82 store_->Clear(); |
83 } | 83 } |
84 | 84 |
85 bool UserCloudPolicyManager::IsClientRegistered() const { | 85 bool UserCloudPolicyManager::IsClientRegistered() const { |
86 return client() && client()->is_registered(); | 86 return client() && client()->is_registered(); |
87 } | 87 } |
88 | 88 |
89 } // namespace policy | 89 } // namespace policy |
OLD | NEW |