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

Unified Diff: remoting/base/rsa_key_pair.cc

Issue 86913002: Make base::Base64Encode() return void (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: One more chromeos-specific fix. 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
« no previous file with comments | « net/websockets/websocket_handshake_handler.cc ('k') | remoting/host/pin_hash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/rsa_key_pair.cc
diff --git a/remoting/base/rsa_key_pair.cc b/remoting/base/rsa_key_pair.cc
index 1cea0774f2e4870e638f7bcd3be897eee35a511e..28dd2efa482325253a0faad93589428f349ac864 100644
--- a/remoting/base/rsa_key_pair.cc
+++ b/remoting/base/rsa_key_pair.cc
@@ -63,9 +63,7 @@ std::string RsaKeyPair::ToString() const {
CHECK(key_->ExportPrivateKey(&key_buf));
std::string key_str(key_buf.begin(), key_buf.end());
std::string key_base64;
- if (!base::Base64Encode(key_str, &key_base64)) {
- LOG(FATAL) << "Base64Encode failed";
- }
+ base::Base64Encode(key_str, &key_base64);
return key_base64;
}
« no previous file with comments | « net/websockets/websocket_handshake_handler.cc ('k') | remoting/host/pin_hash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698