OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/test/live_sync/live_sync_test.h" | 5 #include "chrome/test/live_sync/live_sync_test.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 if (!cl->HasSwitch(switches::kEnableSyncSessions)) | 208 if (!cl->HasSwitch(switches::kEnableSyncSessions)) |
209 cl->AppendSwitch(switches::kEnableSyncSessions); | 209 cl->AppendSwitch(switches::kEnableSyncSessions); |
210 | 210 |
211 // TODO(sync): Remove this once typed url sync is enabled by default. | 211 // TODO(sync): Remove this once typed url sync is enabled by default. |
212 if (!cl->HasSwitch(switches::kEnableSyncTypedUrls)) | 212 if (!cl->HasSwitch(switches::kEnableSyncTypedUrls)) |
213 cl->AppendSwitch(switches::kEnableSyncTypedUrls); | 213 cl->AppendSwitch(switches::kEnableSyncTypedUrls); |
214 | 214 |
215 // Disable non-essential access of external network resources. | 215 // Disable non-essential access of external network resources. |
216 if (!cl->HasSwitch(switches::kDisableBackgroundNetworking)) | 216 if (!cl->HasSwitch(switches::kDisableBackgroundNetworking)) |
217 cl->AppendSwitch(switches::kDisableBackgroundNetworking); | 217 cl->AppendSwitch(switches::kDisableBackgroundNetworking); |
| 218 |
| 219 // TODO(stevet): Remove this once search engines sync is enabled by default. |
| 220 if (!cl->HasSwitch(switches::kEnableSyncSearchEngines)) |
| 221 cl->AppendSwitch(switches::kEnableSyncSearchEngines); |
218 } | 222 } |
219 | 223 |
220 // static | 224 // static |
221 Profile* LiveSyncTest::MakeProfile(const FilePath::StringType name) { | 225 Profile* LiveSyncTest::MakeProfile(const FilePath::StringType name) { |
222 FilePath path; | 226 FilePath path; |
223 PathService::Get(chrome::DIR_USER_DATA, &path); | 227 PathService::Get(chrome::DIR_USER_DATA, &path); |
224 path = path.Append(name); | 228 path = path.Append(name); |
225 | 229 |
226 if (!file_util::PathExists(path)) | 230 if (!file_util::PathExists(path)) |
227 CHECK(file_util::CreateDirectory(path)); | 231 CHECK(file_util::CreateDirectory(path)); |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 const net::ProxyConfig& proxy_config) { | 540 const net::ProxyConfig& proxy_config) { |
537 base::WaitableEvent done(false, false); | 541 base::WaitableEvent done(false, false); |
538 BrowserThread::PostTask( | 542 BrowserThread::PostTask( |
539 BrowserThread::IO, | 543 BrowserThread::IO, |
540 FROM_HERE, | 544 FROM_HERE, |
541 new SetProxyConfigTask(&done, | 545 new SetProxyConfigTask(&done, |
542 context_getter, | 546 context_getter, |
543 proxy_config)); | 547 proxy_config)); |
544 done.Wait(); | 548 done.Wait(); |
545 } | 549 } |
OLD | NEW |