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

Unified Diff: storage/browser/fileapi/file_system_operation_runner.cc

Issue 1546243002: Convert Pass()→std::move() in //storage (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: storage/browser/fileapi/file_system_operation_runner.cc
diff --git a/storage/browser/fileapi/file_system_operation_runner.cc b/storage/browser/fileapi/file_system_operation_runner.cc
index 0ca729b12a3cdb6ae737256c0771906b75aeff3e..20a957b8d466b20404acba96a7566bf749be3f9c 100644
--- a/storage/browser/fileapi/file_system_operation_runner.cc
+++ b/storage/browser/fileapi/file_system_operation_runner.cc
@@ -5,6 +5,7 @@
#include "storage/browser/fileapi/file_system_operation_runner.h"
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "base/macros.h"
@@ -262,18 +263,17 @@ OperationID FileSystemOperationRunner::Write(
return handle.id;
}
- scoped_ptr<FileWriterDelegate> writer_delegate(
- new FileWriterDelegate(writer.Pass(), url.mount_option().flush_policy()));
+ scoped_ptr<FileWriterDelegate> writer_delegate(new FileWriterDelegate(
+ std::move(writer), url.mount_option().flush_policy()));
scoped_ptr<net::URLRequest> blob_request(
storage::BlobProtocolHandler::CreateBlobRequest(
- blob.Pass(), url_request_context, writer_delegate.get()));
+ std::move(blob), url_request_context, writer_delegate.get()));
PrepareForWrite(handle.id, url);
- operation->Write(
- url, writer_delegate.Pass(), blob_request.Pass(),
- base::Bind(&FileSystemOperationRunner::DidWrite, AsWeakPtr(),
- handle, callback));
+ operation->Write(url, std::move(writer_delegate), std::move(blob_request),
+ base::Bind(&FileSystemOperationRunner::DidWrite, AsWeakPtr(),
+ handle, callback));
return handle.id;
}
@@ -591,7 +591,7 @@ void FileSystemOperationRunner::DidOpenFile(
on_close_callback));
return;
}
- callback.Run(file.Pass(), on_close_callback);
+ callback.Run(std::move(file), on_close_callback);
FinishOperation(handle.id);
}
« no previous file with comments | « storage/browser/fileapi/file_system_operation_impl.cc ('k') | storage/browser/fileapi/file_writer_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698