Index: net/disk_cache/blockfile/file_posix.cc |
diff --git a/net/disk_cache/blockfile/file_posix.cc b/net/disk_cache/blockfile/file_posix.cc |
index 26067fb0436dc4b430dd674b8501809d41302a73..5a3ad455478f65cd844a6c49ca28c1e1e36cb45f 100644 |
--- a/net/disk_cache/blockfile/file_posix.cc |
+++ b/net/disk_cache/blockfile/file_posix.cc |
@@ -5,8 +5,8 @@ |
#include "net/disk_cache/blockfile/file.h" |
#include <stdint.h> |
- |
#include <limits> |
+#include <utility> |
#include "base/bind.h" |
#include "base/lazy_instance.h" |
@@ -39,10 +39,7 @@ base::LazyInstance<FileWorkerPool>::Leaky s_worker_pool = |
namespace disk_cache { |
File::File(base::File file) |
- : init_(true), |
- mixed_(true), |
- base_file_(file.Pass()) { |
-} |
+ : init_(true), mixed_(true), base_file_(std::move(file)) {} |
bool File::Init(const base::FilePath& name) { |
if (base_file_.IsValid()) |