Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Unified Diff: trunk/src/net/websockets/websocket_basic_handshake_stream.cc

Issue 111883004: Revert 239921 "Revert 239759 "The comment in base64.h implies th..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/net/websockets/websocket_basic_handshake_stream.cc
===================================================================
--- trunk/src/net/websockets/websocket_basic_handshake_stream.cc (revision 239942)
+++ trunk/src/net/websockets/websocket_basic_handshake_stream.cc (working copy)
@@ -33,8 +33,7 @@
std::string raw_challenge(websockets::kRawChallengeLength, '\0');
crypto::RandBytes(string_as_array(&raw_challenge), raw_challenge.length());
std::string encoded_challenge;
- bool encode_success = base::Base64Encode(raw_challenge, &encoded_challenge);
- DCHECK(encode_success);
+ base::Base64Encode(raw_challenge, &encoded_challenge);
return encoded_challenge;
}

Powered by Google App Engine
This is Rietveld 408576698