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

Unified Diff: base/sha1_win.cc

Issue 281223002: Removed LOG_GETLASTERROR and LOG_ERRNO macros. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 05/14/2014 11:20:03.21 Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/kill_win.cc ('k') | base/synchronization/waitable_event_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
}
« no previous file with comments | « base/process/kill_win.cc ('k') | base/synchronization/waitable_event_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698