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

Unified Diff: net/disk_cache/blockfile/file_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 | « net/base/network_interfaces_win.cc ('k') | net/dns/dns_config_service_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/file_win.cc
diff --git a/net/disk_cache/blockfile/file_win.cc b/net/disk_cache/blockfile/file_win.cc
index ef7be4308d15a12599837bfe67606c0fde2f3b67..1c5a9668763a9275f9d546133fe5958bffe7a1da 100644
--- a/net/disk_cache/blockfile/file_win.cc
+++ b/net/disk_cache/blockfile/file_win.cc
@@ -5,6 +5,7 @@
#include "net/disk_cache/blockfile/file.h"
#include <limits.h>
+#include <utility>
#include "base/files/file_path.h"
#include "base/lazy_instance.h"
@@ -73,10 +74,7 @@ MyOverlapped::MyOverlapped(disk_cache::File* file, size_t offset,
namespace disk_cache {
File::File(base::File file)
- : init_(true),
- mixed_(true),
- sync_base_file_(file.Pass()) {
-}
+ : init_(true), mixed_(true), sync_base_file_(std::move(file)) {}
bool File::Init(const base::FilePath& name) {
DCHECK(!init_);
« no previous file with comments | « net/base/network_interfaces_win.cc ('k') | net/dns/dns_config_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698