| Index: base/sha1_win.cc
|
| diff --git a/base/sha1_win.cc b/base/sha1_win.cc
|
| index 98c3840f0e47a9087722ee83f5a339682a9dca80..b64c9eb858322fcdc828d656326c0bdf63018e71 100644
|
| --- a/base/sha1_win.cc
|
| +++ b/base/sha1_win.cc
|
| @@ -18,20 +18,20 @@ std::string SHA1HashString(const std::string& str) {
|
| ScopedHCRYPTPROV provider;
|
| if (!CryptAcquireContext(provider.receive(), NULL, NULL, PROV_RSA_FULL,
|
| CRYPT_VERIFYCONTEXT)) {
|
| - DLOG_GETLASTERROR(ERROR) << "CryptAcquireContext failed";
|
| + DPLOG(ERROR) << "CryptAcquireContext failed";
|
| return std::string(kSHA1Length, '\0');
|
| }
|
|
|
| {
|
| ScopedHCRYPTHASH hash;
|
| if (!CryptCreateHash(provider, CALG_SHA1, 0, 0, hash.receive())) {
|
| - DLOG_GETLASTERROR(ERROR) << "CryptCreateHash failed";
|
| + DPLOG(ERROR) << "CryptCreateHash failed";
|
| return std::string(kSHA1Length, '\0');
|
| }
|
|
|
| if (!CryptHashData(hash, reinterpret_cast<CONST BYTE*>(str.data()),
|
| static_cast<DWORD>(str.length()), 0)) {
|
| - DLOG_GETLASTERROR(ERROR) << "CryptHashData failed";
|
| + DPLOG(ERROR) << "CryptHashData failed";
|
| return std::string(kSHA1Length, '\0');
|
| }
|
|
|
| @@ -40,7 +40,7 @@ std::string SHA1HashString(const std::string& str) {
|
| if (!CryptGetHashParam(hash, HP_HASHSIZE,
|
| reinterpret_cast<unsigned char*>(&hash_len),
|
| &buffer_size, 0)) {
|
| - DLOG_GETLASTERROR(ERROR) << "CryptGetHashParam(HP_HASHSIZE) failed";
|
| + DPLOG(ERROR) << "CryptGetHashParam(HP_HASHSIZE) failed";
|
| return std::string(kSHA1Length, '\0');
|
| }
|
|
|
| @@ -50,7 +50,7 @@ std::string SHA1HashString(const std::string& str) {
|
| // but so that result.length() is correctly set to |hash_len|.
|
| reinterpret_cast<BYTE*>(WriteInto(&result, hash_len + 1)), &hash_len,
|
| 0))) {
|
| - DLOG_GETLASTERROR(ERROR) << "CryptGetHashParam(HP_HASHVAL) failed";
|
| + DPLOG(ERROR) << "CryptGetHashParam(HP_HASHVAL) failed";
|
| return std::string(kSHA1Length, '\0');
|
| }
|
|
|
|
|