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/chromeos/policy/device_local_account_policy_service.h" | 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chromeos/settings/cros_settings_names.h" | 31 #include "chromeos/settings/cros_settings_names.h" |
32 #include "chromeos/settings/cros_settings_provider.h" | 32 #include "chromeos/settings/cros_settings_provider.h" |
33 #include "components/policy/core/browser/browser_policy_connector.h" | 33 #include "components/policy/core/browser/browser_policy_connector.h" |
34 #include "components/policy/core/common/cloud/cloud_policy_client.h" | 34 #include "components/policy/core/common/cloud/cloud_policy_client.h" |
35 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 35 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
36 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" | 36 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" |
37 #include "components/policy/core/common/cloud/device_management_service.h" | 37 #include "components/policy/core/common/cloud/device_management_service.h" |
38 #include "components/policy/core/common/cloud/resource_cache.h" | 38 #include "components/policy/core/common/cloud/resource_cache.h" |
39 #include "components/policy/core/common/policy_namespace.h" | 39 #include "components/policy/core/common/policy_namespace.h" |
40 #include "components/policy/core/common/policy_switches.h" | 40 #include "components/policy/core/common/policy_switches.h" |
| 41 #include "components/policy/policy_constants.h" |
| 42 #include "components/policy/proto/device_management_backend.pb.h" |
41 #include "content/public/browser/browser_thread.h" | 43 #include "content/public/browser/browser_thread.h" |
42 #include "net/url_request/url_request_context_getter.h" | 44 #include "net/url_request/url_request_context_getter.h" |
43 #include "policy/policy_constants.h" | |
44 #include "policy/proto/device_management_backend.pb.h" | |
45 #include "url/gurl.h" | 45 #include "url/gurl.h" |
46 | 46 |
47 namespace em = enterprise_management; | 47 namespace em = enterprise_management; |
48 | 48 |
49 namespace policy { | 49 namespace policy { |
50 | 50 |
51 namespace { | 51 namespace { |
52 | 52 |
53 // Creates and initializes a cloud policy client. Returns nullptr if the device | 53 // Creates and initializes a cloud policy client. Returns nullptr if the device |
54 // doesn't have credentials in device settings (i.e. is not | 54 // doesn't have credentials in device settings (i.e. is not |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 } | 559 } |
560 return nullptr; | 560 return nullptr; |
561 } | 561 } |
562 | 562 |
563 void DeviceLocalAccountPolicyService::NotifyPolicyUpdated( | 563 void DeviceLocalAccountPolicyService::NotifyPolicyUpdated( |
564 const std::string& user_id) { | 564 const std::string& user_id) { |
565 FOR_EACH_OBSERVER(Observer, observers_, OnPolicyUpdated(user_id)); | 565 FOR_EACH_OBSERVER(Observer, observers_, OnPolicyUpdated(user_id)); |
566 } | 566 } |
567 | 567 |
568 } // namespace policy | 568 } // namespace policy |
OLD | NEW |