| 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 49a9f8773cc7b8557f1a04214b794e18b145fd2d..3623039b09aff5f04a4d1d33c55ac0d780c788d2 100644
|
| --- a/remoting/host/token_validator_factory_impl_unittest.cc
|
| +++ b/remoting/host/token_validator_factory_impl_unittest.cc
|
| @@ -60,7 +60,7 @@ class SetResponseURLRequestContext: public net::TestURLRequestContext {
|
| make_scoped_ptr(new net::URLRequestJobFactoryImpl());
|
| factory->SetProtocolHandler(
|
| "https", make_scoped_ptr(new FakeProtocolHandler(headers, response)));
|
| - context_storage_.set_job_factory(factory.Pass());
|
| + context_storage_.set_job_factory(std::move(factory));
|
| }
|
| };
|
|
|
| @@ -91,10 +91,9 @@ class TokenValidatorFactoryImplTest : public testing::Test {
|
| protected:
|
| void SetUp() override {
|
| key_pair_ = RsaKeyPair::FromString(kTestRsaKeyPair);
|
| - scoped_ptr<net::TestURLRequestContext> context(
|
| - new SetResponseURLRequestContext());
|
| request_context_getter_ = new net::TestURLRequestContextGetter(
|
| - message_loop_.task_runner(), context.Pass());
|
| + message_loop_.task_runner(),
|
| + make_scoped_ptr(new SetResponseURLRequestContext()));
|
| ThirdPartyAuthConfig config;
|
| config.token_url = GURL(kTokenUrl);
|
| config.token_validation_url = GURL(kTokenValidationUrl);
|
|
|