diff options
author | dcheng <dcheng@chromium.org> | 2016-01-13 02:58:14 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-13 10:59:37 +0000 |
commit | f26eed3771b06cb2bf02e5d02e6f19a20f97a00b (patch) | |
tree | 045e2c9c2d63c31431709043ede7b226cfd43821 /chrome/utility/extensions/extensions_handler.cc | |
parent | c1f77e79555cf4cbb4d41f45cc26b70cbcaf4b32 (diff) | |
download | chromium_src-f26eed3771b06cb2bf02e5d02e6f19a20f97a00b.zip chromium_src-f26eed3771b06cb2bf02e5d02e6f19a20f97a00b.tar.gz chromium_src-f26eed3771b06cb2bf02e5d02e6f19a20f97a00b.tar.bz2 |
Convert Pass()→std::move() for Mac build.
BUG=557422
R=avi@chromium.org
TBR=jam@chromium.org
Review URL: https://codereview.chromium.org/1579863003
Cr-Commit-Position: refs/heads/master@{#369135}
Diffstat (limited to 'chrome/utility/extensions/extensions_handler.cc')
-rw-r--r-- | chrome/utility/extensions/extensions_handler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/utility/extensions/extensions_handler.cc b/chrome/utility/extensions/extensions_handler.cc index b79a912..fdd6dfd 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())); |