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

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: 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/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 b22cc030d814b4b3371a46ab920b2a0a3e6b14ab..4acdbccc2ef848756ac462ee95e0ff163b898d07 100644
--- a/chrome/test/live_sync/live_sync_test.cc
+++ b/chrome/test/live_sync/live_sync_test.cc
@@ -403,14 +403,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(" ");
+ CommandLine::StringVector server_cmdline_vector;
+ CommandLine::StringType delimiters(FILE_PATH_LITERAL(" "));
Tokenize(server_cmdline_string, delimiters, &server_cmdline_vector);
Evan Martin 2011/05/10 23:48:32 I wonder what this function is doing? It seems li
msw 2011/05/11 02:28:12 Hmm, it appears this parent process uses its kSync
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.";

Powered by Google App Engine
This is Rietveld 408576698