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

Unified Diff: chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.cc

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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/media_galleries/fileapi/safe_iapps_library_parser.cc
diff --git a/chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.cc b/chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.cc
index 5e7f042201239aeecc251b6f04550ef850c3ba55..827b295606f32b80e78b88cc6e53a1b76522fb47 100644
--- a/chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.cc
+++ b/chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.h"
+#include <utility>
+
#include "build/build_config.h"
#include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
#include "chrome/common/chrome_utility_messages.h"
@@ -89,18 +91,16 @@ void SafeIAppsLibraryParser::OnUtilityProcessStarted() {
}
if (!itunes_callback_.is_null()) {
- utility_process_host_->Send(
- new ChromeUtilityMsg_ParseITunesLibraryXmlFile(
- IPC::TakeFileHandleForProcess(
- library_file_.Pass(),
- utility_process_host_->GetData().handle)));
+ utility_process_host_->Send(new ChromeUtilityMsg_ParseITunesLibraryXmlFile(
+ IPC::TakeFileHandleForProcess(
+ std::move(library_file_),
+ utility_process_host_->GetData().handle)));
} else if (!iphoto_callback_.is_null()) {
#if defined(OS_MACOSX)
- utility_process_host_->Send(
- new ChromeUtilityMsg_ParseIPhotoLibraryXmlFile(
- IPC::TakeFileHandleForProcess(
- library_file_.Pass(),
- utility_process_host_->GetData().handle)));
+ utility_process_host_->Send(new ChromeUtilityMsg_ParseIPhotoLibraryXmlFile(
+ IPC::TakeFileHandleForProcess(
+ std::move(library_file_),
+ utility_process_host_->GetData().handle)));
#endif
}

Powered by Google App Engine
This is Rietveld 408576698