parent
3b183854ff
commit
2d3c65beca
31 changed files with 200 additions and 152 deletions
|
@ -33,6 +33,10 @@
|
|||
#include "base/debug/dump_without_crashing.h"
|
||||
#endif
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include "base/strings/string_util_win.h"
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
ElectronCrashReporterClient* Instance() {
|
||||
|
@ -130,8 +134,8 @@ void ElectronCrashReporterClient::GetProductNameAndVersion(
|
|||
std::wstring* version,
|
||||
std::wstring* special_build,
|
||||
std::wstring* channel_name) {
|
||||
*product_name = base::UTF8ToUTF16(ELECTRON_PRODUCT_NAME);
|
||||
*version = base::UTF8ToUTF16(ELECTRON_VERSION_STRING);
|
||||
*product_name = base::UTF8ToWide(ELECTRON_PRODUCT_NAME);
|
||||
*version = base::UTF8ToWide(ELECTRON_VERSION_STRING);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ void SetNodeCliFlags() {
|
|||
|
||||
for (const auto& arg : argv) {
|
||||
#if defined(OS_WIN)
|
||||
const auto& option = base::UTF16ToUTF8(arg);
|
||||
const auto& option = base::WideToUTF8(arg);
|
||||
#else
|
||||
const auto& option = arg;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue