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

Unified Diff: chrome/test/live_sync/live_sync_test.cc

Issue 6526040: CommandLine refactoring and cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Test Created 9 years, 10 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/live_sync/live_sync_test.cc
diff --git a/chrome/test/live_sync/live_sync_test.cc b/chrome/test/live_sync/live_sync_test.cc
index 430a514be434e13e6bc2c200c0eeba7630fe933b..f7d2a5e36c06e9fb8609ed38fc6d5967c70385d7 100644
--- a/chrome/test/live_sync/live_sync_test.cc
+++ b/chrome/test/live_sync/live_sync_test.cc
@@ -381,14 +381,10 @@ bool LiveSyncTest::SetUpLocalTestServer() {
CommandLine* cl = CommandLine::ForCurrentProcess();
CommandLine::StringType server_cmdline_string = cl->GetSwitchValueNative(
switches::kSyncServerCommandLine);
-#if defined(OS_WIN)
- CommandLine server_cmdline = CommandLine::FromString(server_cmdline_string);
-#else
- std::vector<std::string> server_cmdline_vector;
- std::string delimiters(" ");
+ std::vector<CommandLine::StringType> server_cmdline_vector;
+ CommandLine::StringType delimiters(FILE_PATH_LITERAL(" "));
Tokenize(server_cmdline_string, delimiters, &server_cmdline_vector);
CommandLine server_cmdline(server_cmdline_vector);
-#endif
if (!base::LaunchApp(server_cmdline, false, true, &test_server_handle_))
LOG(ERROR) << "Could not launch local test server.";
« chrome/test/in_process_browser_test.cc ('K') | « chrome/test/in_process_browser_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698