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

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 8334030: Merge search engines sync data type with Preferences. Sync the default search provider. Add some ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/browser/sync/test/integration/sync_test.h" 5 #include "chrome/browser/sync/test/integration/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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 // Disable non-essential access of external network resources. 218 // Disable non-essential access of external network resources.
219 if (!cl->HasSwitch(switches::kDisableBackgroundNetworking)) 219 if (!cl->HasSwitch(switches::kDisableBackgroundNetworking))
220 cl->AppendSwitch(switches::kDisableBackgroundNetworking); 220 cl->AppendSwitch(switches::kDisableBackgroundNetworking);
221 } 221 }
222 222
223 void SyncTest::AddOptionalTypesToCommandLine(CommandLine* cl) { 223 void SyncTest::AddOptionalTypesToCommandLine(CommandLine* cl) {
224 // TODO(sync): Remove this once sessions sync is enabled by default. 224 // TODO(sync): Remove this once sessions sync is enabled by default.
225 if (!cl->HasSwitch(switches::kEnableSyncTabs)) 225 if (!cl->HasSwitch(switches::kEnableSyncTabs))
226 cl->AppendSwitch(switches::kEnableSyncTabs); 226 cl->AppendSwitch(switches::kEnableSyncTabs);
227
228 // TODO(stevet): Remove this once search engines sync is enabled by default.
229 if (!cl->HasSwitch(switches::kEnableSyncSearchEngines))
230 cl->AppendSwitch(switches::kEnableSyncSearchEngines);
231 } 227 }
232 228
233 // static 229 // static
234 Profile* SyncTest::MakeProfile(const FilePath::StringType name) { 230 Profile* SyncTest::MakeProfile(const FilePath::StringType name) {
235 FilePath path; 231 FilePath path;
236 PathService::Get(chrome::DIR_USER_DATA, &path); 232 PathService::Get(chrome::DIR_USER_DATA, &path);
237 path = path.Append(name); 233 path = path.Append(name);
238 234
239 if (!file_util::PathExists(path)) 235 if (!file_util::PathExists(path))
240 CHECK(file_util::CreateDirectory(path)); 236 CHECK(file_util::CreateDirectory(path));
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 const net::ProxyConfig& proxy_config) { 703 const net::ProxyConfig& proxy_config) {
708 base::WaitableEvent done(false, false); 704 base::WaitableEvent done(false, false);
709 BrowserThread::PostTask( 705 BrowserThread::PostTask(
710 BrowserThread::IO, 706 BrowserThread::IO,
711 FROM_HERE, 707 FROM_HERE,
712 new SetProxyConfigTask(&done, 708 new SetProxyConfigTask(&done,
713 context_getter, 709 context_getter,
714 proxy_config)); 710 proxy_config));
715 done.Wait(); 711 done.Wait();
716 } 712 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698