| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/component_cloud_policy_store.h" | 5 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h" |
| 6 | 6 |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/sha1.h" | 9 #include "base/sha1.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 12 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
| 13 #include "chrome/browser/policy/cloud/cloud_policy_validator.h" | 13 #include "chrome/browser/policy/cloud/cloud_policy_validator.h" |
| 14 #include "chrome/browser/policy/cloud/proto/chrome_extension_policy.pb.h" | |
| 15 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" | |
| 16 #include "chrome/browser/policy/cloud/resource_cache.h" | 14 #include "chrome/browser/policy/cloud/resource_cache.h" |
| 17 #include "chrome/browser/policy/policy_map.h" | 15 #include "chrome/browser/policy/policy_map.h" |
| 16 #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h" |
| 17 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
| 18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 | 19 |
| 20 namespace em = enterprise_management; | 20 namespace em = enterprise_management; |
| 21 | 21 |
| 22 namespace policy { | 22 namespace policy { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 const char kValue[] = "Value"; | 26 const char kValue[] = "Value"; |
| 27 const char kLevel[] = "Level"; | 27 const char kLevel[] = "Level"; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 // If policy for components is ever used for device-level settings then | 334 // If policy for components is ever used for device-level settings then |
| 335 // this must support a configurable scope; assuming POLICY_SCOPE_USER is | 335 // this must support a configurable scope; assuming POLICY_SCOPE_USER is |
| 336 // fine for now. | 336 // fine for now. |
| 337 policy->Set(it.key(), level, POLICY_SCOPE_USER, value); | 337 policy->Set(it.key(), level, POLICY_SCOPE_USER, value); |
| 338 } | 338 } |
| 339 | 339 |
| 340 return true; | 340 return true; |
| 341 } | 341 } |
| 342 | 342 |
| 343 } // namespace policy | 343 } // namespace policy |
| OLD | NEW |