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

Unified Diff: chrome/common/safe_browsing/binary_feature_extractor.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/common/safe_browsing/binary_feature_extractor.cc
diff --git a/chrome/common/safe_browsing/binary_feature_extractor.cc b/chrome/common/safe_browsing/binary_feature_extractor.cc
index 54f6c2051b4a41ee982f91fe26f7efe249f42b9c..a7c3c0d753407a93a090794044c6055f039927b3 100644
--- a/chrome/common/safe_browsing/binary_feature_extractor.cc
+++ b/chrome/common/safe_browsing/binary_feature_extractor.cc
@@ -4,6 +4,8 @@
#include "chrome/common/safe_browsing/binary_feature_extractor.h"
+#include <utility>
+
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/memory_mapped_file.h"
@@ -36,7 +38,7 @@ bool BinaryFeatureExtractor::ExtractImageFeaturesFromFile(
ClientDownloadRequest_ImageHeaders* image_headers,
google::protobuf::RepeatedPtrField<std::string>* signed_data) {
base::MemoryMappedFile mapped_file;
- if (!mapped_file.Initialize(file.Pass()))
+ if (!mapped_file.Initialize(std::move(file)))
return false;
return ExtractImageFeaturesFromData(mapped_file.data(), mapped_file.length(),
options, image_headers, signed_data);

Powered by Google App Engine
This is Rietveld 408576698