| 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/device_policy_cache.h" | 5 #include "chrome/browser/policy/device_policy_cache.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/browser/chromeos/cros_settings.h" | 18 #include "chrome/browser/chromeos/cros_settings.h" |
| 19 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
| 20 #include "chrome/browser/chromeos/dbus/update_engine_client.h" | |
| 21 #include "chrome/browser/chromeos/login/ownership_service.h" | 19 #include "chrome/browser/chromeos/login/ownership_service.h" |
| 22 #include "chrome/browser/chromeos/login/signed_settings_helper.h" | 20 #include "chrome/browser/chromeos/login/signed_settings_helper.h" |
| 23 #include "chrome/browser/policy/app_pack_updater.h" | 21 #include "chrome/browser/policy/app_pack_updater.h" |
| 24 #include "chrome/browser/policy/cloud_policy_data_store.h" | 22 #include "chrome/browser/policy/cloud_policy_data_store.h" |
| 25 #include "chrome/browser/policy/enterprise_install_attributes.h" | 23 #include "chrome/browser/policy/enterprise_install_attributes.h" |
| 26 #include "chrome/browser/policy/enterprise_metrics.h" | 24 #include "chrome/browser/policy/enterprise_metrics.h" |
| 27 #include "chrome/browser/policy/policy_map.h" | 25 #include "chrome/browser/policy/policy_map.h" |
| 28 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 26 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
| 29 #include "chrome/browser/policy/proto/device_management_local.pb.h" | 27 #include "chrome/browser/policy/proto/device_management_local.pb.h" |
| 28 #include "chromeos/dbus/dbus_thread_manager.h" |
| 29 #include "chromeos/dbus/update_engine_client.h" |
| 30 #include "policy/policy_constants.h" | 30 #include "policy/policy_constants.h" |
| 31 | 31 |
| 32 using google::protobuf::RepeatedPtrField; | 32 using google::protobuf::RepeatedPtrField; |
| 33 | 33 |
| 34 namespace em = enterprise_management; | 34 namespace em = enterprise_management; |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 // Stores policy, updates the owner key if required and reports the status | 38 // Stores policy, updates the owner key if required and reports the status |
| 39 // through a callback. | 39 // through a callback. |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 PolicyMap* policies) { | 593 PolicyMap* policies) { |
| 594 // Decode the various groups of policies. | 594 // Decode the various groups of policies. |
| 595 DecodeLoginPolicies(policy, policies); | 595 DecodeLoginPolicies(policy, policies); |
| 596 DecodeKioskPolicies(policy, policies); | 596 DecodeKioskPolicies(policy, policies); |
| 597 DecodeNetworkPolicies(policy, policies); | 597 DecodeNetworkPolicies(policy, policies); |
| 598 DecodeReportingPolicies(policy, policies); | 598 DecodeReportingPolicies(policy, policies); |
| 599 DecodeGenericPolicies(policy, policies); | 599 DecodeGenericPolicies(policy, policies); |
| 600 } | 600 } |
| 601 | 601 |
| 602 } // namespace policy | 602 } // namespace policy |
| OLD | NEW |