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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_policy_service.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/chromeos/policy/device_local_account_policy_service.h" 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/files/file_enumerator.h" 11 #include "base/files/file_enumerator.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/message_loop/message_loop_proxy.h" 15 #include "base/message_loop/message_loop_proxy.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/sequenced_task_runner.h" 17 #include "base/sequenced_task_runner.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/chromeos/policy/device_local_account.h" 20 #include "chrome/browser/chromeos/policy/device_local_account.h"
21 #include "chrome/browser/chromeos/policy/device_local_account_external_data_serv ice.h" 21 #include "chrome/browser/chromeos/policy/device_local_account_external_data_serv ice.h"
22 #include "chrome/browser/chromeos/policy/device_local_account_policy_store.h" 22 #include "chrome/browser/chromeos/policy/device_local_account_policy_store.h"
23 #include "chrome/browser/chromeos/settings/device_settings_service.h" 23 #include "chrome/browser/chromeos/settings/device_settings_service.h"
24 #include "chrome/browser/policy/cloud/cloud_policy_client.h"
25 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
26 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h"
27 #include "chrome/browser/policy/cloud/device_management_service.h"
28 #include "chrome/browser/policy/cloud/system_policy_request_context.h"
29 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" 24 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
30 #include "chromeos/chromeos_paths.h" 25 #include "chromeos/chromeos_paths.h"
31 #include "chromeos/dbus/session_manager_client.h" 26 #include "chromeos/dbus/session_manager_client.h"
32 #include "chromeos/settings/cros_settings_names.h" 27 #include "chromeos/settings/cros_settings_names.h"
33 #include "chromeos/settings/cros_settings_provider.h" 28 #include "chromeos/settings/cros_settings_provider.h"
29 #include "components/policy/core/common/cloud/cloud_policy_client.h"
30 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
31 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h"
32 #include "components/policy/core/common/cloud/device_management_service.h"
33 #include "components/policy/core/common/cloud/system_policy_request_context.h"
34 #include "content/public/common/content_client.h" 34 #include "content/public/common/content_client.h"
35 #include "net/url_request/url_request_context_getter.h" 35 #include "net/url_request/url_request_context_getter.h"
36 #include "policy/policy_constants.h" 36 #include "policy/policy_constants.h"
37 #include "url/gurl.h" 37 #include "url/gurl.h"
38 38
39 namespace em = enterprise_management; 39 namespace em = enterprise_management;
40 40
41 namespace policy { 41 namespace policy {
42 42
43 namespace { 43 namespace {
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 CloudPolicyStore* store) { 503 CloudPolicyStore* store) {
504 for (PolicyBrokerMap::iterator it(policy_brokers_.begin()); 504 for (PolicyBrokerMap::iterator it(policy_brokers_.begin());
505 it != policy_brokers_.end(); ++it) { 505 it != policy_brokers_.end(); ++it) {
506 if (it->second->core()->store() == store) 506 if (it->second->core()->store() == store)
507 return it->second; 507 return it->second;
508 } 508 }
509 return NULL; 509 return NULL;
510 } 510 }
511 511
512 } // namespace policy 512 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698