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

Unified Diff: content/browser/loader/mime_type_resource_handler_unittest.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: content/browser/loader/mime_type_resource_handler_unittest.cc
diff --git a/content/browser/loader/mime_type_resource_handler_unittest.cc b/content/browser/loader/mime_type_resource_handler_unittest.cc
index a4967496de58553506ae3e5cb89edb026766b8f9..1b3ddcdbdf09e4fcd32443722866d973c05e125b 100644
--- a/content/browser/loader/mime_type_resource_handler_unittest.cc
+++ b/content/browser/loader/mime_type_resource_handler_unittest.cc
@@ -95,7 +95,7 @@ class TestResourceDispatcherHost : public ResourceDispatcherHostImpl {
uint32_t id,
scoped_ptr<DownloadSaveInfo> save_info,
const DownloadUrlParameters::OnStartedCallback& started_cb) override {
- return scoped_ptr<ResourceHandler>(new TestResourceHandler).Pass();
+ return scoped_ptr<ResourceHandler>(new TestResourceHandler);
}
scoped_ptr<ResourceHandler> MaybeInterceptAsStream(
@@ -106,7 +106,7 @@ class TestResourceDispatcherHost : public ResourceDispatcherHostImpl {
intercepted_as_stream_count_++;
if (stream_has_handler_) {
intercepted_as_stream_ = true;
- return scoped_ptr<ResourceHandler>(new TestResourceHandler).Pass();
+ return scoped_ptr<ResourceHandler>(new TestResourceHandler);
} else {
return scoped_ptr<ResourceHandler>();
}
@@ -258,10 +258,9 @@ bool MimeTypeResourceHandlerTest::TestStreamIsIntercepted(
host.SetDelegate(&host_delegate);
TestFakePluginService plugin_service(plugin_available_, plugin_stale_);
- scoped_ptr<ResourceHandler> mime_sniffing_handler(
- new MimeTypeResourceHandler(
- scoped_ptr<ResourceHandler>(new TestResourceHandler()).Pass(), &host,
- &plugin_service, request.get()));
+ scoped_ptr<ResourceHandler> mime_sniffing_handler(new MimeTypeResourceHandler(
+ scoped_ptr<ResourceHandler>(new TestResourceHandler()), &host,
+ &plugin_service, request.get()));
TestResourceController resource_controller;
mime_sniffing_handler->SetController(&resource_controller);
« no previous file with comments | « content/browser/loader/mime_type_resource_handler.cc ('k') | content/browser/loader/navigation_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698