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); |