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

Unified Diff: chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
diff --git a/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc b/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
index 417f4cd872b97807134e251b2c4f69ca67f133ae..ee05765bc9696df75b1e965e9d22f20494e1c8b3 100644
--- a/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
+++ b/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/safe_browsing/sandboxed_zip_analyzer.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/files/file_util.h"
@@ -57,8 +59,9 @@ void SandboxedZipAnalyzer::CloseTemporaryFile() {
// Close the temporary file in the blocking pool since doing so will delete
// the file.
if (!BrowserThread::GetBlockingPool()->PostWorkerTaskWithShutdownBehavior(
- FROM_HERE, base::Bind(&base::File::Close,
- base::Owned(new base::File(temp_file_.Pass()))),
+ FROM_HERE,
+ base::Bind(&base::File::Close,
+ base::Owned(new base::File(std::move(temp_file_)))),
base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN)) {
NOTREACHED();
}
@@ -136,7 +139,7 @@ void SandboxedZipAnalyzer::OnUtilityProcessStarted() {
}
utility_process_host_->Send(
new ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection(
- IPC::TakeFileHandleForProcess(zip_file_.Pass(), utility_process),
+ IPC::TakeFileHandleForProcess(std::move(zip_file_), utility_process),
IPC::GetFileHandleForProcess(temp_file_.GetPlatformFile(),
utility_process,
false /* !close_source_handle */)));

Powered by Google App Engine
This is Rietveld 408576698