summaryrefslogtreecommitdiffstats
path: root/base/test/perf_test_suite.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-03 20:44:13 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-03 20:44:13 +0000
commitb83a6621517d44fd8a39dacc2beac07735dd1d1e (patch)
tree01e0c5d37fab49106ac5a2a4b4cfecbb3bae683a /base/test/perf_test_suite.h
parenta82965a4a4892a0f642a6a762dace08fbe811248 (diff)
downloadchromium_src-b83a6621517d44fd8a39dacc2beac07735dd1d1e.zip
chromium_src-b83a6621517d44fd8a39dacc2beac07735dd1d1e.tar.gz
chromium_src-b83a6621517d44fd8a39dacc2beac07735dd1d1e.tar.bz2
De-wstringify perf_test_suite.h and test_suite.h.
Review URL: http://codereview.chromium.org/3007029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test/perf_test_suite.h')
-rw-r--r--base/test/perf_test_suite.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/base/test/perf_test_suite.h b/base/test/perf_test_suite.h
index 8838462..bac5a63 100644
--- a/base/test/perf_test_suite.h
+++ b/base/test/perf_test_suite.h
@@ -23,16 +23,13 @@ class PerfTestSuite : public TestSuite {
TestSuite::Initialize();
// Initialize the perf timer log
- FilePath log_path;
- std::wstring log_file =
- CommandLine::ForCurrentProcess()->GetSwitchValue("log-file");
- if (log_file.empty()) {
+ FilePath log_path =
+ CommandLine::ForCurrentProcess()->GetSwitchValuePath("log-file");
+ if (log_path.empty()) {
FilePath exe;
PathService::Get(base::FILE_EXE, &exe);
log_path = exe.ReplaceExtension(FILE_PATH_LITERAL("log"));
log_path = log_path.InsertBeforeExtension(FILE_PATH_LITERAL("_perf"));
- } else {
- log_path = FilePath::FromWStringHack(log_file);
}
ASSERT_TRUE(InitPerfLog(log_path));