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

Unified Diff: chrome/utility/extensions/extensions_handler.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/utility/extensions/extensions_handler.cc
diff --git a/chrome/utility/extensions/extensions_handler.cc b/chrome/utility/extensions/extensions_handler.cc
index b79a912b4df1fcf3b2060ab05100fd3aff255593..fdd6dfda3d5e20247c2d03cd7244cd99f78d088e 100644
--- a/chrome/utility/extensions/extensions_handler.cc
+++ b/chrome/utility/extensions/extensions_handler.cc
@@ -165,7 +165,7 @@ void ExtensionsHandler::OnParseIPhotoLibraryXmlFile(
const IPC::PlatformFileForTransit& iphoto_library_file) {
iphoto::IPhotoLibraryParser parser;
base::File file = IPC::PlatformFileForTransitToFile(iphoto_library_file);
- bool result = parser.Parse(iapps::ReadFileAsString(file.Pass()));
+ bool result = parser.Parse(iapps::ReadFileAsString(std::move(file)));
Send(new ChromeUtilityHostMsg_GotIPhotoLibrary(result, parser.library()));
ReleaseProcessIfNeeded();
}
@@ -176,7 +176,7 @@ void ExtensionsHandler::OnParseITunesLibraryXmlFile(
const IPC::PlatformFileForTransit& itunes_library_file) {
itunes::ITunesLibraryParser parser;
base::File file = IPC::PlatformFileForTransitToFile(itunes_library_file);
- bool result = parser.Parse(iapps::ReadFileAsString(file.Pass()));
+ bool result = parser.Parse(iapps::ReadFileAsString(std::move(file)));
Send(new ChromeUtilityHostMsg_GotITunesLibrary(result, parser.library()));
ReleaseProcessIfNeeded();
}
@@ -199,7 +199,7 @@ void ExtensionsHandler::OnParsePicasaPMPDatabase(
files.uid_file =
IPC::PlatformFileForTransitToFile(album_table_files.uid_file);
- picasa::PicasaAlbumTableReader reader(files.Pass());
+ picasa::PicasaAlbumTableReader reader(std::move(files));
bool parse_success = reader.Init();
Send(new ChromeUtilityHostMsg_ParsePicasaPMPDatabase_Finished(
parse_success, reader.albums(), reader.folders()));
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_unittest.cc ('k') | chrome/utility/media_galleries/picasa_album_table_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698