diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-29 14:22:01 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-29 14:22:01 +0000 |
commit | 0090c09e67bea1636d5b6270e92170236f7c2e75 (patch) | |
tree | 7f04bb2ef0bfc97df58458e53e514e60000fe4a2 /chrome/common | |
parent | 56888f9877ad37ee62a8d751d3e448fd57d4e48a (diff) | |
download | chromium_src-0090c09e67bea1636d5b6270e92170236f7c2e75.zip chromium_src-0090c09e67bea1636d5b6270e92170236f7c2e75.tar.gz chromium_src-0090c09e67bea1636d5b6270e92170236f7c2e75.tar.bz2 |
Followup on http://codereview.chromium.org/3815012/show
Addresses a couple of nits (no functional changes).
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/4097005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/net/x509_certificate_model.cc | 5 | ||||
-rw-r--r-- | chrome/common/net/x509_certificate_model.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/chrome/common/net/x509_certificate_model.cc b/chrome/common/net/x509_certificate_model.cc index 641e7c5d..0ec2bff 100644 --- a/chrome/common/net/x509_certificate_model.cc +++ b/chrome/common/net/x509_certificate_model.cc @@ -79,10 +79,11 @@ std::string ProcessRawBytes(const unsigned char* data, size_t data_length) { return ProcessRawBytesWithSeparators(data, data_length, ' ', '\n'); } +#if defined(USE_NSS) std::string ProcessRawBits(const unsigned char* data, size_t data_length) { - return ProcessRawBytesWithSeparators(data, (data_length + 7) / 8, ' ', '\n'); + return ProcessRawBytes(data, (data_length + 7) / 8); } - +#endif // USE_NSS } // x509_certificate_model diff --git a/chrome/common/net/x509_certificate_model.h b/chrome/common/net/x509_certificate_model.h index 56bb0a75..3e4f14f 100644 --- a/chrome/common/net/x509_certificate_model.h +++ b/chrome/common/net/x509_certificate_model.h @@ -134,10 +134,12 @@ std::string ProcessRawBytesWithSeparators(const unsigned char* data, std::string ProcessRawBytes(const unsigned char* data, size_t data_length); +#if defined(USE_NSS) // Format a buffer as a space separated string, with 16 bytes on each line. // |data_length| is the length in bits. std::string ProcessRawBits(const unsigned char* data, size_t data_length); +#endif // USE_NSS } // namespace x509_certificate_model |