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

Side by Side Diff: chrome/common/net/x509_certificate_model.cc

Issue 1082123003: Rename USE_NSS to USE_NSS_CERTS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-nss-certs
Patch Set: rebase Created 5 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/common/net/x509_certificate_model.h" 5 #include "chrome/common/net/x509_certificate_model.h"
6 6
7 #include <unicode/uidna.h> 7 #include <unicode/uidna.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ret.push_back(hex_separator); 58 ret.push_back(hex_separator);
59 } 59 }
60 } 60 }
61 return ret; 61 return ret;
62 } 62 }
63 63
64 std::string ProcessRawBytes(const unsigned char* data, size_t data_length) { 64 std::string ProcessRawBytes(const unsigned char* data, size_t data_length) {
65 return ProcessRawBytesWithSeparators(data, data_length, ' ', '\n'); 65 return ProcessRawBytesWithSeparators(data, data_length, ' ', '\n');
66 } 66 }
67 67
68 #if defined(USE_NSS) 68 #if defined(USE_NSS_CERTS)
69 std::string ProcessRawBits(const unsigned char* data, size_t data_length) { 69 std::string ProcessRawBits(const unsigned char* data, size_t data_length) {
70 return ProcessRawBytes(data, (data_length + 7) / 8); 70 return ProcessRawBytes(data, (data_length + 7) / 8);
71 } 71 }
72 #endif // USE_NSS 72 #endif // USE_NSS_CERTS
73 73
74 } // namespace x509_certificate_model 74 } // namespace x509_certificate_model
75 75
OLDNEW
« no previous file with comments | « chrome/common/net/x509_certificate_model.h ('k') | chrome/common/net/x509_certificate_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698