summaryrefslogtreecommitdiffstats
path: root/chrome/common/debug_flags.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 02:07:25 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 02:07:25 +0000
commitb7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78 (patch)
treed723b8556ad386a0b8a6e999e3a842e0bfe6f9b0 /chrome/common/debug_flags.cc
parent1976d41ac728fcceb30f2df3c243cb7417f538f1 (diff)
downloadchromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.zip
chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.gz
chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.bz2
Use ASCII strings for switch names.
Review URL: http://codereview.chromium.org/270062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/debug_flags.cc')
-rw-r--r--chrome/common/debug_flags.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/common/debug_flags.cc b/chrome/common/debug_flags.cc
index 5e0b43e..4924f19 100644
--- a/chrome/common/debug_flags.cc
+++ b/chrome/common/debug_flags.cc
@@ -6,6 +6,7 @@
#include "base/base_switches.h"
#include "base/command_line.h"
+#include "base/utf_string_conversions.h"
#include "chrome/common/chrome_switches.h"
#include "ipc/ipc_switches.h"
@@ -16,8 +17,8 @@ bool DebugFlags::ProcessDebugFlags(CommandLine* command_line,
const CommandLine& current_cmd_line = *CommandLine::ForCurrentProcess();
if (current_cmd_line.HasSwitch(switches::kDebugChildren)) {
// Look to pass-on the kDebugOnStart flag.
- std::wstring value;
- value = current_cmd_line.GetSwitchValue(switches::kDebugChildren);
+ std::string value = current_cmd_line.GetSwitchValueASCII(
+ switches::kDebugChildren);
if (value.empty() ||
(type == ChildProcessInfo::RENDER_PROCESS &&
value == switches::kRendererProcess) ||
@@ -29,8 +30,8 @@ bool DebugFlags::ProcessDebugFlags(CommandLine* command_line,
command_line->AppendSwitchWithValue(switches::kDebugChildren, value);
} else if (current_cmd_line.HasSwitch(switches::kWaitForDebuggerChildren)) {
// Look to pass-on the kWaitForDebugger flag.
- std::wstring value;
- value = current_cmd_line.GetSwitchValue(switches::kWaitForDebuggerChildren);
+ std::string value = current_cmd_line.GetSwitchValueASCII(
+ switches::kWaitForDebuggerChildren);
if (value.empty() ||
(type == ChildProcessInfo::RENDER_PROCESS &&
value == switches::kRendererProcess) ||