OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "components/payments/content/android/utility/fingerprint_parser.h" | 5 #include "components/payments/content/utility/fingerprint_parser.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/numerics/safe_conversions.h" | 8 #include "base/numerics/safe_conversions.h" |
9 | 9 |
10 namespace payments { | 10 namespace payments { |
11 namespace { | 11 namespace { |
12 | 12 |
13 bool IsUpperCaseHexDigit(char c) { | 13 bool IsUpperCaseHexDigit(char c) { |
14 return (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F'); | 14 return (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F'); |
15 } | 15 } |
(...skipping 25 matching lines...) Expand all Loading... |
41 } | 41 } |
42 | 42 |
43 output.push_back(HexDigitToByte(big_end) * static_cast<uint8_t>(16) + | 43 output.push_back(HexDigitToByte(big_end) * static_cast<uint8_t>(16) + |
44 HexDigitToByte(little_end)); | 44 HexDigitToByte(little_end)); |
45 } | 45 } |
46 | 46 |
47 return output; | 47 return output; |
48 } | 48 } |
49 | 49 |
50 } // namespace payments | 50 } // namespace payments |
OLD | NEW |