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

Unified Diff: base/perf_test_suite.h

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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
« no previous file with comments | « base/multiprocess_test.h ('k') | base/process_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/perf_test_suite.h
diff --git a/base/perf_test_suite.h b/base/perf_test_suite.h
index 444a0998cbac101b8d323f325de73f7e17bd74fa..ea6846a3bbc42d3059e765702111ca4843ee21a8 100644
--- a/base/perf_test_suite.h
+++ b/base/perf_test_suite.h
@@ -23,7 +23,8 @@ class PerfTestSuite : public TestSuite {
// Initialize the perf timer log
FilePath log_path;
- std::wstring log_file = CommandLine().GetSwitchValue(L"log-file");
+ std::wstring log_file =
+ CommandLine::ForCurrentProcess()->GetSwitchValue(L"log-file");
if (log_file.empty()) {
FilePath exe;
PathService::Get(base::FILE_EXE, &exe);
« no previous file with comments | « base/multiprocess_test.h ('k') | base/process_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698