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_factory.h" | 5 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
9 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
11 #include "chrome/browser/policy/schema_registry_service.h" | 12 #include "chrome/browser/policy/schema_registry_service.h" |
12 #include "chrome/browser/policy/schema_registry_service_factory.h" | 13 #include "chrome/browser/policy/schema_registry_service_factory.h" |
13 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 14 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
14 #include "components/keyed_service/core/keyed_service.h" | 15 #include "components/keyed_service/core/keyed_service.h" |
15 #include "components/policy/core/common/cloud/cloud_external_data_manager.h" | 16 #include "components/policy/core/common/cloud/cloud_external_data_manager.h" |
16 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 17 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
17 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" | 18 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" |
18 #include "components/policy/core/common/cloud/user_cloud_policy_store.h" | 19 #include "components/policy/core/common/cloud/user_cloud_policy_store.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 return testing_factory_ != NULL; | 211 return testing_factory_ != NULL; |
211 } | 212 } |
212 | 213 |
213 void UserCloudPolicyManagerFactory::CreateServiceNow( | 214 void UserCloudPolicyManagerFactory::CreateServiceNow( |
214 content::BrowserContext* context) { | 215 content::BrowserContext* context) { |
215 DCHECK(testing_factory_); | 216 DCHECK(testing_factory_); |
216 manager_wrappers_[context] = new ManagerWrapper(testing_factory_(context)); | 217 manager_wrappers_[context] = new ManagerWrapper(testing_factory_(context)); |
217 } | 218 } |
218 | 219 |
219 } // namespace policy | 220 } // namespace policy |
OLD | NEW |