Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4628)

Unified Diff: chrome/test/test_launcher/out_of_proc_test_runner.cc

Issue 3057033: Remove GetSwitchValue() from chrome/* where easy. (Closed)
Patch Set: finally Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/test_launcher/out_of_proc_test_runner.cc
diff --git a/chrome/test/test_launcher/out_of_proc_test_runner.cc b/chrome/test/test_launcher/out_of_proc_test_runner.cc
index 2401a36a02b275c259ddfa1a5c15d744eaf0a35f..eb4e172fc2dfd572ef465ee0f1e2dbec6a9cf328 100644
--- a/chrome/test/test_launcher/out_of_proc_test_runner.cc
+++ b/chrome/test/test_launcher/out_of_proc_test_runner.cc
@@ -86,10 +86,10 @@ class OutOfProcTestRunner : public tests::TestRunner {
int test_terminate_timeout_ms = kDefaultTestTimeoutMs;
if (cmd_line->HasSwitch(kTestTerminateTimeoutFlag)) {
- std::wstring timeout_str(
- cmd_line->GetSwitchValue(kTestTerminateTimeoutFlag));
+ std::string timeout_str =
+ cmd_line->GetSwitchValueASCII(kTestTerminateTimeoutFlag);
int timeout;
- base::StringToInt(WideToUTF8(timeout_str), &timeout);
+ base::StringToInt(timeout_str, &timeout);
test_terminate_timeout_ms = std::max(test_terminate_timeout_ms, timeout);
}

Powered by Google App Engine
This is Rietveld 408576698