mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
2757472: Reland "Reland "[LSC] Remove base::string16 alias""
https://chromium-review.googlesource.com/c/chromium/src/+/2757472
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user