| 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" | |
| 11 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | |
| 12 #include "chrome/browser/policy/cloud/cloud_policy_service.h" | |
| 13 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 10 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
| 14 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" | 11 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" |
| 12 #include "components/policy/core/common/cloud/cloud_external_data_manager.h" |
| 13 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 14 #include "components/policy/core/common/cloud/cloud_policy_service.h" |
| 15 #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" | 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, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // all external data references have been removed, causing the | 100 // all external data references have been removed, causing the |
| 101 // |external_data_manager_| to clear its cache as well. | 101 // |external_data_manager_| to clear its cache as well. |
| 102 store_->Clear(); | 102 store_->Clear(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 bool UserCloudPolicyManager::IsClientRegistered() const { | 105 bool UserCloudPolicyManager::IsClientRegistered() const { |
| 106 return client() && client()->is_registered(); | 106 return client() && client()->is_registered(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace policy | 109 } // namespace policy |
| OLD | NEW |