| Index: remoting/host/token_validator_factory_impl_unittest.cc
|
| diff --git a/remoting/host/token_validator_factory_impl_unittest.cc b/remoting/host/token_validator_factory_impl_unittest.cc
|
| index ae08f59f150c7d8f963556aa9d289c7d84eb7acd..a0e4d1d788f8b4ef239bc866490160426ef30338 100644
|
| --- a/remoting/host/token_validator_factory_impl_unittest.cc
|
| +++ b/remoting/host/token_validator_factory_impl_unittest.cc
|
| @@ -60,9 +60,9 @@ class SetResponseURLRequestContext: public net::TestURLRequestContext {
|
| public:
|
| void SetResponse(const std::string& headers, const std::string& response) {
|
| std::unique_ptr<net::URLRequestJobFactoryImpl> factory =
|
| - base::WrapUnique(new net::URLRequestJobFactoryImpl());
|
| + base::MakeUnique<net::URLRequestJobFactoryImpl>();
|
| factory->SetProtocolHandler(
|
| - "https", base::WrapUnique(new FakeProtocolHandler(headers, response)));
|
| + "https", base::MakeUnique<FakeProtocolHandler>(headers, response));
|
| context_storage_.set_job_factory(std::move(factory));
|
| }
|
| };
|
| @@ -96,7 +96,7 @@ class TokenValidatorFactoryImplTest : public testing::Test {
|
| key_pair_ = RsaKeyPair::FromString(kTestRsaKeyPair);
|
| request_context_getter_ = new net::TestURLRequestContextGetter(
|
| message_loop_.task_runner(),
|
| - base::WrapUnique(new SetResponseURLRequestContext()));
|
| + base::MakeUnique<SetResponseURLRequestContext>());
|
| ThirdPartyAuthConfig config;
|
| config.token_url = GURL(kTokenUrl);
|
| config.token_validation_url = GURL(kTokenValidationUrl);
|
|
|