Searched refs:tmp_file (Results 1 – 1 of 1) sorted by relevance
65 bool DeleteTmpFileIfNotChanged(const std::string& tmp_file, const std::string& current_file) { in DeleteTmpFileIfNotChanged() argument67 ReadFile(current_file) != ReadFile(tmp_file)) { in DeleteTmpFileIfNotChanged()68 if (!RenameFile(tmp_file, current_file).ok()) { in DeleteTmpFileIfNotChanged()75 RemoveFile(tmp_file); in DeleteTmpFileIfNotChanged()