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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 252683006: Remove ClosePlatformFile from media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra space Created 6 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
« no previous file with comments | « no previous file | chrome/utility/media_galleries/iapps_xml_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index 7390adb3e50d85838ae4d1e3f79037af7f2f7723..1ca9c94f4627ae2a1d24b09ca4ea12bcb5ef532c 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -945,9 +945,8 @@ void ChromeContentUtilityClient::OnParseITunesPrefXml(
void ChromeContentUtilityClient::OnParseIPhotoLibraryXmlFile(
const IPC::PlatformFileForTransit& iphoto_library_file) {
iphoto::IPhotoLibraryParser parser;
- base::PlatformFile file =
- IPC::PlatformFileForTransitToPlatformFile(iphoto_library_file);
- bool result = parser.Parse(iapps::ReadPlatformFileAsString(file));
+ base::File file = IPC::PlatformFileForTransitToFile(iphoto_library_file);
+ bool result = parser.Parse(iapps::ReadFileAsString(file.Pass()));
Send(new ChromeUtilityHostMsg_GotIPhotoLibrary(result, parser.library()));
ReleaseProcessIfNeeded();
}
@@ -957,9 +956,8 @@ void ChromeContentUtilityClient::OnParseIPhotoLibraryXmlFile(
void ChromeContentUtilityClient::OnParseITunesLibraryXmlFile(
const IPC::PlatformFileForTransit& itunes_library_file) {
itunes::ITunesLibraryParser parser;
- base::PlatformFile file =
- IPC::PlatformFileForTransitToPlatformFile(itunes_library_file);
- bool result = parser.Parse(iapps::ReadPlatformFileAsString(file));
+ base::File file = IPC::PlatformFileForTransitToFile(itunes_library_file);
+ bool result = parser.Parse(iapps::ReadFileAsString(file.Pass()));
Send(new ChromeUtilityHostMsg_GotITunesLibrary(result, parser.library()));
ReleaseProcessIfNeeded();
}
« no previous file with comments | « no previous file | chrome/utility/media_galleries/iapps_xml_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698