Index: chrome/browser/sync/profile_sync_service_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc |
index 0e2a86efb718a489269854edb82ccdc42e53cf76..bd6150a98f9d783baa408983673ce94fab11d96e 100644 |
--- a/chrome/browser/sync/profile_sync_service_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_unittest.cc |
@@ -586,17 +586,10 @@ TEST_F(ProfileSyncServiceTest, RollbackThenBackup) { |
#endif |
TEST_F(ProfileSyncServiceTest, GetSyncServiceURL) { |
- CommandLine command_line(*CommandLine::ForCurrentProcess()); |
- |
- // See that it defaults to a "dev" URL. |
- // |
- // Yes, we're hardcoding the URL here so this test will have to be updated |
- // when/if the URL ever changes. |
- EXPECT_EQ("https://clients4.google.com/chrome-sync/dev", |
- ProfileSyncService::GetSyncServiceURL(command_line).spec()); |
- |
// See that we can override the URL with a flag. |
- command_line.AppendSwitchASCII("--sync-url", "https://foo/bar"); |
+ CommandLine command_line( |
+ base::FilePath(base::FilePath(FILE_PATH_LITERAL("chrome.exe")))); |
+ command_line.AppendSwitchASCII(switches::kSyncServiceURL, "https://foo/bar"); |
EXPECT_EQ("https://foo/bar", |
ProfileSyncService::GetSyncServiceURL(command_line).spec()); |
} |