Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: components/payments/content/utility/fingerprint_parser.cc

Issue 2759283002: Make payment manifest download/parse cross-platform (Closed)
Patch Set: Address comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698