Index: google_apis/gaia/oauth_request_signer.cc |
diff --git a/google_apis/gaia/oauth_request_signer.cc b/google_apis/gaia/oauth_request_signer.cc |
index fe65d4fa5bbdb0243a9a4c82edaf40ca8eb23ee4..26c5c21d10001d7cb366e2004f612d14dc2a1a04 100644 |
--- a/google_apis/gaia/oauth_request_signer.cc |
+++ b/google_apis/gaia/oauth_request_signer.cc |
@@ -204,10 +204,11 @@ bool SignHmacSha1(const std::string& text, |
DCHECK(hmac.DigestLength() == kHmacDigestLength); |
unsigned char digest[kHmacDigestLength]; |
bool result = hmac.Init(key) && |
- hmac.Sign(text, digest, kHmacDigestLength) && |
- base::Base64Encode(std::string(reinterpret_cast<const char*>(digest), |
- kHmacDigestLength), |
- signature_return); |
+ hmac.Sign(text, digest, kHmacDigestLength); |
+ if (result) |
brettw
2013/12/09 19:36:26
Use {} for this since it's >1 line.
|
+ base::Base64Encode( |
+ std::string(reinterpret_cast<const char*>(digest), kHmacDigestLength), |
+ signature_return); |
return result; |
} |