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

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

Issue 3069014: Convert a bunch of easy AppendSwitchWithValue to *ASCII. (Closed)
Patch Set: fix Created 10 years, 5 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 207eb99b5263b3a8f4fe0ee869de9159e6706995..8f87da37821b4207af72efa0edeac7048dc5ab1e 100644
--- a/chrome/test/live_sync/live_sync_test.cc
+++ b/chrome/test/live_sync/live_sync_test.cc
@@ -60,8 +60,8 @@ void LiveSyncTest::SetUp() {
// TODO(rsimha): Until we implement a fake Tango server against which tests
// can run, we need to set the --sync-notification-method to "transitional".
if (!cl->HasSwitch(switches::kSyncNotificationMethod)) {
- cl->AppendSwitchWithValue(switches::kSyncNotificationMethod,
- "transitional");
+ cl->AppendSwitchASCII(switches::kSyncNotificationMethod,
+ "transitional");
}
// Unless a sync server was explicitly provided, run a test one locally.
@@ -183,9 +183,9 @@ void LiveSyncTest::SetUpLocalTestServer() {
started_local_test_server_ = true;
CommandLine* cl = CommandLine::ForCurrentProcess();
- cl->AppendSwitchWithValue(switches::kSyncServiceURL,
+ cl->AppendSwitchASCII(switches::kSyncServiceURL,
StringPrintf("http://%s:%d/chromiumsync", server_.kHostName,
- server_.kOKHTTPSPort));
+ server_.kOKHTTPSPort));
}
void LiveSyncTest::TearDownLocalTestServer() {

Powered by Google App Engine
This is Rietveld 408576698