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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_test.cc

Issue 6526040: CommandLine refactoring and cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Major refresh after r76339 and r76419. Created 9 years, 7 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/browser/safe_browsing/safe_browsing_test.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_test.cc b/chrome/browser/safe_browsing/safe_browsing_test.cc
index 53c65fe041407553db57fd3decfa71dae61dead7..65a68df6f7ea828e2ba9fe127d6cbb44164b4493 100644
--- a/chrome/browser/safe_browsing/safe_browsing_test.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_test.cc
@@ -141,8 +141,9 @@ class SafeBrowsingTestServer {
CommandLine cmd_line(python_runtime);
FilePath datafile = testserver_path.Append(datafile_);
cmd_line.AppendArgPath(testserver);
- cmd_line.AppendSwitchASCII("port", StringPrintf("%d", kPort_));
- cmd_line.AppendSwitchPath("datafile", datafile);
+ cmd_line.AppendArg("--port=" + base::IntToString(kPort_));
+ cmd_line.AppendArgNative(FILE_PATH_LITERAL("--datafile=") +
+ datafile.value());
Evan Martin 2011/05/10 23:48:32 Why not AppendSwitch for these?
msw 2011/05/11 02:28:12 Because Python syntax requires the script (testser
if (!base::LaunchApp(cmd_line, false, true, &server_handle_)) {
LOG(ERROR) << "Failed to launch server: "

Powered by Google App Engine
This is Rietveld 408576698