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); |