Index: net/test/spawned_test_server/base_test_server.cc |
diff --git a/net/test/spawned_test_server/base_test_server.cc b/net/test/spawned_test_server/base_test_server.cc |
index ab46afb3c0c247bdad5f7651eb0ddd3a915f3535..5ad64cd02d1692facef044aae8d69449f93a673c 100644 |
--- a/net/test/spawned_test_server/base_test_server.cc |
+++ b/net/test/spawned_test_server/base_test_server.cc |
@@ -85,18 +85,18 @@ void GetCiphersList(int cipher, base::ListValue* values) { |
values->AppendString("aes128gcm"); |
} |
-base::Value* GetTLSIntoleranceType( |
+std::unique_ptr<base::Value> GetTLSIntoleranceType( |
BaseTestServer::SSLOptions::TLSIntoleranceType type) { |
switch (type) { |
case BaseTestServer::SSLOptions::TLS_INTOLERANCE_ALERT: |
- return new base::Value("alert"); |
+ return base::MakeUnique<base::Value>("alert"); |
case BaseTestServer::SSLOptions::TLS_INTOLERANCE_CLOSE: |
- return new base::Value("close"); |
+ return base::MakeUnique<base::Value>("close"); |
case BaseTestServer::SSLOptions::TLS_INTOLERANCE_RESET: |
- return new base::Value("reset"); |
+ return base::MakeUnique<base::Value>("reset"); |
default: |
NOTREACHED(); |
- return new base::Value(""); |
+ return base::MakeUnique<base::Value>(""); |
} |
} |