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

Unified Diff: net/base/file_stream_context_win.cc

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 months 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
« no previous file with comments | « mojo/edk/test/test_utils_win.cc ('k') | net/base/network_interfaces_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/file_stream_context_win.cc
diff --git a/net/base/file_stream_context_win.cc b/net/base/file_stream_context_win.cc
index 907d863b8e4eb7296180a328cd64b2a9dd3c068c..0294a1aa48617a94633c349ab0f756297418871f 100644
--- a/net/base/file_stream_context_win.cc
+++ b/net/base/file_stream_context_win.cc
@@ -5,6 +5,7 @@
#include "net/base/file_stream_context.h"
#include <windows.h>
+#include <utility>
#include "base/files/file_path.h"
#include "base/location.h"
@@ -50,7 +51,7 @@ FileStream::Context::Context(const scoped_refptr<base::TaskRunner>& task_runner)
FileStream::Context::Context(base::File file,
const scoped_refptr<base::TaskRunner>& task_runner)
- : file_(file.Pass()),
+ : file_(std::move(file)),
async_in_progress_(false),
orphaned_(false),
task_runner_(task_runner),
« no previous file with comments | « mojo/edk/test/test_utils_win.cc ('k') | net/base/network_interfaces_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698