| Index: trunk/src/remoting/protocol/pairing_registry.cc
|
| ===================================================================
|
| --- trunk/src/remoting/protocol/pairing_registry.cc (revision 239920)
|
| +++ trunk/src/remoting/protocol/pairing_registry.cc (working copy)
|
| @@ -49,8 +49,10 @@
|
| std::string shared_secret;
|
| char buffer[kKeySize];
|
| crypto::RandBytes(buffer, arraysize(buffer));
|
| - base::Base64Encode(base::StringPiece(buffer, arraysize(buffer)),
|
| - &shared_secret);
|
| + if (!base::Base64Encode(base::StringPiece(buffer, arraysize(buffer)),
|
| + &shared_secret)) {
|
| + LOG(FATAL) << "Base64Encode failed.";
|
| + }
|
| return Pairing(created_time, client_name, client_id, shared_secret);
|
| }
|
|
|
|
|