OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/prefs/pref_hash_calculator.h" | 5 #include "chrome/browser/prefs/tracked/pref_hash_calculator.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/json/json_string_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "crypto/hmac.h" | 15 #include "crypto/hmac.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 digest_string)) { | 115 digest_string)) { |
116 return VALID; | 116 return VALID; |
117 } | 117 } |
118 if (VerifyDigestString(seed_, | 118 if (VerifyDigestString(seed_, |
119 GetMessage(legacy_device_id_, path, value_as_string), | 119 GetMessage(legacy_device_id_, path, value_as_string), |
120 digest_string)) { | 120 digest_string)) { |
121 return VALID_SECURE_LEGACY; | 121 return VALID_SECURE_LEGACY; |
122 } | 122 } |
123 return INVALID; | 123 return INVALID; |
124 } | 124 } |
OLD | NEW |