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

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

Issue 1862333002: ipc: Rename TakeFileHandleForProcess->TakePlatformFileForTransit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Created 4 years, 8 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_picasa_album_table_reader.cc
diff --git a/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.cc b/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.cc
index ee68daee933fb5e9c7a41ed242deaf6b7a938c7d..f45d5aa968afa237da2cd2e38ca7ae2eb3438f9d 100644
--- a/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.cc
+++ b/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.cc
@@ -86,27 +86,20 @@ void SafePicasaAlbumTableReader::OnProcessStarted() {
DLOG(ERROR) << "Child process handle is null";
}
AlbumTableFilesForTransit files_for_transit;
- files_for_transit.indicator_file = IPC::TakeFileHandleForProcess(
- std::move(album_table_files_.indicator_file),
- utility_process_host_->GetData().handle);
- files_for_transit.category_file =
- IPC::TakeFileHandleForProcess(std::move(album_table_files_.category_file),
- utility_process_host_->GetData().handle);
+ files_for_transit.indicator_file = IPC::TakePlatformFileForTransit(
+ std::move(album_table_files_.indicator_file));
+ files_for_transit.category_file = IPC::TakePlatformFileForTransit(
+ std::move(album_table_files_.category_file));
files_for_transit.date_file =
- IPC::TakeFileHandleForProcess(std::move(album_table_files_.date_file),
- utility_process_host_->GetData().handle);
- files_for_transit.filename_file =
- IPC::TakeFileHandleForProcess(std::move(album_table_files_.filename_file),
- utility_process_host_->GetData().handle);
+ IPC::TakePlatformFileForTransit(std::move(album_table_files_.date_file));
+ files_for_transit.filename_file = IPC::TakePlatformFileForTransit(
+ std::move(album_table_files_.filename_file));
files_for_transit.name_file =
- IPC::TakeFileHandleForProcess(std::move(album_table_files_.name_file),
- utility_process_host_->GetData().handle);
+ IPC::TakePlatformFileForTransit(std::move(album_table_files_.name_file));
files_for_transit.token_file =
- IPC::TakeFileHandleForProcess(std::move(album_table_files_.token_file),
- utility_process_host_->GetData().handle);
+ IPC::TakePlatformFileForTransit(std::move(album_table_files_.token_file));
files_for_transit.uid_file =
- IPC::TakeFileHandleForProcess(std::move(album_table_files_.uid_file),
- utility_process_host_->GetData().handle);
+ IPC::TakePlatformFileForTransit(std::move(album_table_files_.uid_file));
utility_process_host_->Send(new ChromeUtilityMsg_ParsePicasaPMPDatabase(
files_for_transit));
parser_state_ = STARTED_PARSING_STATE;
« no previous file with comments | « chrome/browser/media_galleries/fileapi/safe_iapps_library_parser.cc ('k') | chrome/browser/printing/pwg_raster_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698