diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 23:06:43 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 23:06:43 +0000 |
commit | 6958825220097145e6b4633bad2b5f0c37d341d3 (patch) | |
tree | 434cbc15b902514ac2715172a96ecd1961da1934 | |
parent | f805fe8d565caf479ea438adfd1cd9a0f58b52ab (diff) | |
download | chromium_src-6958825220097145e6b4633bad2b5f0c37d341d3.zip chromium_src-6958825220097145e6b4633bad2b5f0c37d341d3.tar.gz chromium_src-6958825220097145e6b4633bad2b5f0c37d341d3.tar.bz2 |
De-wstringify some of our breakpad interfaces.
Review URL: http://codereview.chromium.org/3050035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54833 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/app/breakpad_linux.cc | 4 | ||||
-rw-r--r-- | chrome/app/breakpad_mac.mm | 7 | ||||
-rw-r--r-- | chrome/app/breakpad_win.cc | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc index 22f69f9..59dedb9 100644 --- a/chrome/app/breakpad_linux.cc +++ b/chrome/app/breakpad_linux.cc @@ -752,8 +752,8 @@ void InitCrashReporter() { if (!parsed_command_line.HasSwitch(switches::kEnableCrashReporter)) return; // Get the guid and linux distro from the command line switch. - std::string switch_value = WideToASCII( - parsed_command_line.GetSwitchValue(switches::kEnableCrashReporter)); + std::string switch_value = + parsed_command_line.GetSwitchValueASCII(switches::kEnableCrashReporter); size_t separator = switch_value.find(","); if (separator != std::string::npos) { google_update::posix_guid = switch_value.substr(0, separator); diff --git a/chrome/app/breakpad_mac.mm b/chrome/app/breakpad_mac.mm index a7d580d..f96327c 100644 --- a/chrome/app/breakpad_mac.mm +++ b/chrome/app/breakpad_mac.mm @@ -168,10 +168,11 @@ void InitCrashProcessInfo() { // Determine the process type. NSString* process_type = @"browser"; - std::wstring process_type_switch = - CommandLine::ForCurrentProcess()->GetSwitchValue(switches::kProcessType); + std::string process_type_switch = + CommandLine::ForCurrentProcess()->GetSwitchValueASCII( + switches::kProcessType); if (!process_type_switch.empty()) { - process_type = base::SysWideToNSString(process_type_switch); + process_type = base::SysUTF8ToNSString(process_type_switch); } // Store process type in crash dump. diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc index efb5b3e..a21f5b5 100644 --- a/chrome/app/breakpad_win.cc +++ b/chrome/app/breakpad_win.cc @@ -526,7 +526,7 @@ void InitCrashReporterWithDllPath(const std::wstring& dll_path) { // Query the custom_info now because if we do it in the thread it's going to // fail in the sandbox. The thread will delete this object. CrashReporterInfo* info(new CrashReporterInfo); - info->process_type = command.GetSwitchValue(switches::kProcessType); + info->process_type = command.GetSwitchValueNative(switches::kProcessType); if (info->process_type.empty()) info->process_type = L"browser"; |