| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/platform_keys/key_permissions.h" | 5 #include "chrome/browser/chromeos/platform_keys/key_permissions.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/prefs/pref_service.h" | |
| 14 #include "base/prefs/scoped_user_pref_update.h" | |
| 15 #include "base/values.h" | 13 #include "base/values.h" |
| 16 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
| 17 #include "components/policy/core/common/policy_map.h" | 15 #include "components/policy/core/common/policy_map.h" |
| 18 #include "components/policy/core/common/policy_namespace.h" | 16 #include "components/policy/core/common/policy_namespace.h" |
| 19 #include "components/policy/core/common/policy_service.h" | 17 #include "components/policy/core/common/policy_service.h" |
| 20 #include "components/pref_registry/pref_registry_syncable.h" | 18 #include "components/pref_registry/pref_registry_syncable.h" |
| 19 #include "components/prefs/pref_service.h" |
| 20 #include "components/prefs/scoped_user_pref_update.h" |
| 21 #include "extensions/browser/state_store.h" | 21 #include "extensions/browser/state_store.h" |
| 22 #include "policy/policy_constants.h" | 22 #include "policy/policy_constants.h" |
| 23 | 23 |
| 24 namespace chromeos { | 24 namespace chromeos { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // The key at which platform key specific data is stored in each extension's | 28 // The key at which platform key specific data is stored in each extension's |
| 29 // state store. | 29 // state store. |
| 30 // | 30 // |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 const base::DictionaryValue* platform_keys = | 391 const base::DictionaryValue* platform_keys = |
| 392 profile_prefs_->GetDictionary(prefs::kPlatformKeys); | 392 profile_prefs_->GetDictionary(prefs::kPlatformKeys); |
| 393 | 393 |
| 394 const base::DictionaryValue* key_entry = nullptr; | 394 const base::DictionaryValue* key_entry = nullptr; |
| 395 platform_keys->GetDictionaryWithoutPathExpansion(public_key_spki_der_b64, | 395 platform_keys->GetDictionaryWithoutPathExpansion(public_key_spki_der_b64, |
| 396 &key_entry); | 396 &key_entry); |
| 397 return key_entry; | 397 return key_entry; |
| 398 } | 398 } |
| 399 | 399 |
| 400 } // namespace chromeos | 400 } // namespace chromeos |
| OLD | NEW |