diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 05:54:10 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 05:54:10 +0000 |
commit | 5d39e314de21a384eaa226d4875b6a6e8e1bea17 (patch) | |
tree | ff3e9de865f592de344be6fa98fc96939b76a240 /chrome/browser/jankometer.cc | |
parent | abac839b4a359636d6168d34d94ac6d043b6550b (diff) | |
download | chromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.zip chromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.tar.gz chromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.tar.bz2 |
Use GetSwitchValueASCII, so we don't use the deprecated versions.
Patch from Thiago Farina <thiago.farina@gmail.com>.
Review URL: http://codereview.chromium.org/498002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/jankometer.cc')
-rw-r--r-- | chrome/browser/jankometer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/jankometer.cc b/chrome/browser/jankometer.cc index 10d2f14..6d396ef 100644 --- a/chrome/browser/jankometer.cc +++ b/chrome/browser/jankometer.cc @@ -232,11 +232,11 @@ void InstallJankometer(const CommandLine& parsed_command_line) { bool ui_watchdog_enabled = false; bool io_watchdog_enabled = false; if (parsed_command_line.HasSwitch(switches::kEnableWatchdog)) { - std::wstring list = - parsed_command_line.GetSwitchValue(switches::kEnableWatchdog); - if (list.npos != list.find(L"ui")) + std::string list = + parsed_command_line.GetSwitchValueASCII(switches::kEnableWatchdog); + if (list.npos != list.find("ui")) ui_watchdog_enabled = true; - if (list.npos != list.find(L"io")) + if (list.npos != list.find("io")) io_watchdog_enabled = true; } |