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

Unified Diff: remoting/host/pin_hash.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 | « remoting/base/rsa_key_pair.cc ('k') | remoting/host/token_validator_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pin_hash.cc
diff --git a/remoting/host/pin_hash.cc b/remoting/host/pin_hash.cc
index fe17f38caff4d46e4fd812462bb7b9788c94e317..c9b1ca3cb6575acc0b48fd1510c9bba5cd82c804 100644
--- a/remoting/host/pin_hash.cc
+++ b/remoting/host/pin_hash.cc
@@ -16,9 +16,7 @@ std::string MakeHostPinHash(const std::string& host_id,
std::string hash = protocol::AuthenticationMethod::ApplyHashFunction(
protocol::AuthenticationMethod::HMAC_SHA256, host_id, pin);
std::string hash_base64;
- if (!base::Base64Encode(hash, &hash_base64)) {
- LOG(FATAL) << "Base64Encode failed";
- }
+ base::Base64Encode(hash, &hash_base64);
return "hmac:" + hash_base64;
}
« no previous file with comments | « remoting/base/rsa_key_pair.cc ('k') | remoting/host/token_validator_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698