Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: remoting/host/token_validator_factory_impl_unittest.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..6991cf77463ac209b2800b2c969fe7f82d6a1baa 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));
}
};
@@ -94,7 +94,7 @@ class TokenValidatorFactoryImplTest : public testing::Test {
scoped_ptr<net::TestURLRequestContext> context(
new SetResponseURLRequestContext());
request_context_getter_ = new net::TestURLRequestContextGetter(
- message_loop_.task_runner(), context.Pass());
+ message_loop_.task_runner(), std::move(context));
ThirdPartyAuthConfig config;
config.token_url = GURL(kTokenUrl);
config.token_validation_url = GURL(kTokenValidationUrl);

Powered by Google App Engine
This is Rietveld 408576698