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

Unified Diff: chrome/common/net/gaia/oauth_request_signer.cc

Issue 7522014: Add WARN_UNUSED_RESULT to crypto/hmac.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto CL 7532020 and update remoting Created 9 years, 5 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 | « chrome/browser/internal_auth.cc ('k') | crypto/hmac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/oauth_request_signer.cc
diff --git a/chrome/common/net/gaia/oauth_request_signer.cc b/chrome/common/net/gaia/oauth_request_signer.cc
index dd2b6d85535fd4b6bce06d704ae5187ecaf4019b..41b9fc036f89d2c65e446e306a928559887938bc 100644
--- a/chrome/common/net/gaia/oauth_request_signer.cc
+++ b/chrome/common/net/gaia/oauth_request_signer.cc
@@ -204,8 +204,8 @@ bool SignHmacSha1(const std::string& text,
crypto::HMAC hmac(crypto::HMAC::SHA1);
DCHECK(hmac.DigestLength() == kHmacDigestLength);
unsigned char digest[kHmacDigestLength];
- hmac.Init(key);
- bool result = hmac.Sign(text, digest, kHmacDigestLength) &&
+ bool result = hmac.Init(key) &&
+ hmac.Sign(text, digest, kHmacDigestLength) &&
base::Base64Encode(std::string(reinterpret_cast<const char*>(digest),
kHmacDigestLength),
signature_return);
« no previous file with comments | « chrome/browser/internal_auth.cc ('k') | crypto/hmac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698