Chromium Code Reviews| Index: net/cert/x509_util.cc |
| diff --git a/net/cert/x509_util.cc b/net/cert/x509_util.cc |
| index 35913c19d2b5cd1ba2e7eee46ddf9aa4e9844f0d..a5d583d0eb1bc82864b37b3be2530e9c4138efe9 100644 |
| --- a/net/cert/x509_util.cc |
| +++ b/net/cert/x509_util.cc |
| @@ -112,7 +112,7 @@ bool CreateKeyAndSelfSignedCert(const std::string& subject, |
| not_valid_after, |
| der_cert); |
| if (success) |
| - key->reset(new_key.release()); |
| + *key = std::move(new_key); |
| return success; |
| } |