Only call UTF8ToUTF16 on Windows
This commit is contained in:
parent
84b7bb29f0
commit
30c6ca6751
2 changed files with 8 additions and 3 deletions
|
@ -38,7 +38,12 @@ void CrashReporter::Start(const std::string& product_name,
|
|||
|
||||
base::FilePath CrashReporter::GetCrashesDirectory(
|
||||
const std::string& product_name, const base::FilePath& temp_path) {
|
||||
return temp_path.Append(base::UTF8ToUTF16(product_name + " Crashes"));
|
||||
std::string folder_name = product_name + " Crashes";
|
||||
#if defined(OS_WIN)
|
||||
return temp_path.Append(base::UTF8ToUTF16(folder_name));
|
||||
#else
|
||||
return temp_path.Append(folder_name);
|
||||
#endif
|
||||
}
|
||||
|
||||
void CrashReporter::SetUploadParameters(const StringMap& parameters) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue