diff options
Diffstat (limited to 'chromium/base/sha1_win.cc')
-rw-r--r-- | chromium/base/sha1_win.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/base/sha1_win.cc b/chromium/base/sha1_win.cc index 98c3840f0e4..b64c9eb8583 100644 --- a/chromium/base/sha1_win.cc +++ b/chromium/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'); } |