| 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..115c14d6f01f8c1f8ed43f4956abfa4d8af8daa3 100644
|
| --- a/google_apis/gaia/oauth_request_signer.cc
|
| +++ b/google_apis/gaia/oauth_request_signer.cc
|
| @@ -204,10 +204,12 @@ 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) {
|
| + base::Base64Encode(
|
| + std::string(reinterpret_cast<const char*>(digest), kHmacDigestLength),
|
| + signature_return);
|
| + }
|
| return result;
|
| }
|
|
|
|
|