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/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
11 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" | |
12 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" | 11 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" |
13 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" | 12 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" |
14 #include "chrome/browser/policy/schema_registry_service.h" | 13 #include "chrome/browser/policy/schema_registry_service.h" |
15 #include "chrome/browser/policy/schema_registry_service_factory.h" | 14 #include "chrome/browser/policy/schema_registry_service_factory.h" |
16 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 15 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
| 16 #include "components/policy/core/common/cloud/cloud_external_data_manager.h" |
17 #include "content/public/browser/browser_context.h" | 17 #include "content/public/browser/browser_context.h" |
18 | 18 |
19 namespace policy { | 19 namespace policy { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Directory inside the profile directory where policy-related resources are | 23 // Directory inside the profile directory where policy-related resources are |
24 // stored. | 24 // stored. |
25 const base::FilePath::CharType kPolicy[] = FILE_PATH_LITERAL("Policy"); | 25 const base::FilePath::CharType kPolicy[] = FILE_PATH_LITERAL("Policy"); |
26 | 26 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 if (entry != managers_.end()) { | 167 if (entry != managers_.end()) { |
168 if (instance) | 168 if (instance) |
169 DCHECK_EQ(instance, entry->second); | 169 DCHECK_EQ(instance, entry->second); |
170 managers_.erase(entry); | 170 managers_.erase(entry); |
171 } else { | 171 } else { |
172 NOTREACHED(); | 172 NOTREACHED(); |
173 } | 173 } |
174 } | 174 } |
175 | 175 |
176 } // namespace policy | 176 } // namespace policy |
OLD | NEW |