From 0701830ac765884c97d79eb0ff49483f77e2b18a Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Fri, 25 Jul 2014 05:55:36 +0000 Subject: Remove Create*Value (except CreateNullValue) BUG=160586 Review URL: https://codereview.chromium.org/415423002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285496 0039d316-1c4b-4281-b951-d872f2087c98 --- net/test/spawned_test_server/base_test_server.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'net/test/spawned_test_server') diff --git a/net/test/spawned_test_server/base_test_server.cc b/net/test/spawned_test_server/base_test_server.cc index 2ee9adc..c0fc6c5 100644 --- a/net/test/spawned_test_server/base_test_server.cc +++ b/net/test/spawned_test_server/base_test_server.cc @@ -435,8 +435,7 @@ bool BaseTestServer::GenerateArguments(base::DictionaryValue* arguments) const { arguments->SetString("ocsp", ocsp_arg); if (ssl_options_.cert_serial != 0) { - arguments->Set("cert-serial", - base::Value::CreateIntegerValue(ssl_options_.cert_serial)); + arguments->SetInteger("cert-serial", ssl_options_.cert_serial); } // Check key exchange argument. @@ -452,8 +451,7 @@ bool BaseTestServer::GenerateArguments(base::DictionaryValue* arguments) const { if (ssl_options_.record_resume) arguments->Set("https-record-resume", base::Value::CreateNullValue()); if (ssl_options_.tls_intolerant != SSLOptions::TLS_INTOLERANT_NONE) { - arguments->Set("tls-intolerant", - new base::FundamentalValue(ssl_options_.tls_intolerant)); + arguments->SetInteger("tls-intolerant", ssl_options_.tls_intolerant); arguments->Set("tls-intolerance-type", GetTLSIntoleranceType( ssl_options_.tls_intolerance_type)); } -- cgit v1.1