Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698