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

Unified Diff: content/browser/renderer_host/pepper/pepper_file_io_host.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/renderer_host/pepper/pepper_file_io_host.cc
diff --git a/content/browser/renderer_host/pepper/pepper_file_io_host.cc b/content/browser/renderer_host/pepper/pepper_file_io_host.cc
index 782289118677edd6f617b540144db59d863362e7..faead267821e4a96db89bb40c3aed2c193634375 100644
--- a/content/browser/renderer_host/pepper/pepper_file_io_host.cc
+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.cc
@@ -4,6 +4,8 @@
#include "content/browser/renderer_host/pepper/pepper_file_io_host.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/callback_helpers.h"
@@ -91,7 +93,7 @@ void DidOpenFile(base::WeakPtr<PepperFileIOHost> file_host,
base::File file,
const base::Closure& on_close_callback) {
if (file_host) {
- callback.Run(file.Pass(), on_close_callback);
+ callback.Run(std::move(file), on_close_callback);
} else {
BrowserThread::PostTaskAndReply(
BrowserThread::FILE,
@@ -284,7 +286,7 @@ void PepperFileIOHost::DidOpenInternalFile(
DCHECK(!file_.IsValid());
base::File::Error error =
file.IsValid() ? base::File::FILE_OK : file.error_details();
- file_.SetFile(file.Pass());
+ file_.SetFile(std::move(file));
OnOpenProxyCallback(reply_context, error);
}
@@ -390,7 +392,7 @@ void PepperFileIOHost::DidOpenQuotaFile(
DCHECK(!file_.IsValid());
DCHECK(file.IsValid());
max_written_offset_ = max_written_offset;
- file_.SetFile(file.Pass());
+ file_.SetFile(std::move(file));
OnOpenProxyCallback(reply_context, base::File::FILE_OK);
}

Powered by Google App Engine
This is Rietveld 408576698