Index: google_apis/cup/client_update_protocol.cc |
diff --git a/google_apis/cup/client_update_protocol.cc b/google_apis/cup/client_update_protocol.cc |
index 0ff3d8f0b09db0fa2cf9760f296400d8c40468df..afde3ab46b5b0d3cb693d64d2358aea904da2370 100644 |
--- a/google_apis/cup/client_update_protocol.cc |
+++ b/google_apis/cup/client_update_protocol.cc |
@@ -122,8 +122,7 @@ std::vector<uint8> RsaPad(size_t rsa_key_size, |
// needed. Call the standard Base64 encoder/decoder and then apply fixups. |
std::string UrlSafeB64Encode(const std::vector<uint8>& data) { |
std::string result; |
- if (!base::Base64Encode(ByteVectorToSP(data), &result)) |
- return std::string(); |
+ base::Base64Encode(ByteVectorToSP(data), &result); |
// Do an tr|+/|-_| on the output, and strip any '=' padding. |
for (std::string::iterator it = result.begin(); it != result.end(); ++it) { |
@@ -302,4 +301,3 @@ bool ClientUpdateProtocol::DeriveSharedKey(const std::vector<uint8>& source) { |
return true; |
} |
- |