| Index: trunk/src/google_apis/gaia/oauth_request_signer.cc
|
| ===================================================================
|
| --- trunk/src/google_apis/gaia/oauth_request_signer.cc (revision 239942)
|
| +++ trunk/src/google_apis/gaia/oauth_request_signer.cc (working copy)
|
| @@ -204,10 +204,12 @@
|
| 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;
|
| }
|
|
|
|
|