| 365 | } |
| 366 | |
| 367 | std::string GenerateValidAndUniqueTrashedFilePath(std::string const & fileName) |
| 368 | { |
| 369 | std::string extension = base::GetFileExtension(fileName); |
| 370 | std::string filePath = RemoveInvalidSymbols(fileName); |
| 371 | if (filePath.empty()) |
| 372 | filePath = kDefaultBookmarksFileName; |
| 373 | return GenerateUniqueFileName(GetTrashDirectory(), std::move(filePath), extension); |
| 374 | } |
| 375 | |
| 376 | std::string const kDefaultBookmarksFileName = "Bookmarks"; |
| 377 |
no test coverage detected