static
| 102 | |
| 103 | // static |
| 104 | std::string ToolSupport::FilePathToCommandLineArgument( |
| 105 | const base::FilePath& file_path) { |
| 106 | #if BUILDFLAG(IS_POSIX) |
| 107 | return file_path.value(); |
| 108 | #elif BUILDFLAG(IS_WIN) |
| 109 | return base::WideToUTF8(file_path.value()); |
| 110 | #endif // BUILDFLAG(IS_POSIX) |
| 111 | } |
| 112 | |
| 113 | } // namespace crashpad |