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