| 601 | } |
| 602 | |
| 603 | bool SaveKmlFileSafe(kml::FileData & kmlData, std::string const & file, KmlFileType fileType) |
| 604 | { |
| 605 | LOG(LINFO, ("Save kml file of type", fileType, "to", file)); |
| 606 | return base::WriteToTempAndRenameToFile( |
| 607 | file, [&kmlData, fileType](std::string const & fileName) { return SaveKmlFile(kmlData, fileName, fileType); }); |
| 608 | } |
| 609 | |
| 610 | bool SaveKmlFileByExt(kml::FileData & kmlData, std::string const & file) |
| 611 | { |
no test coverage detected