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

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

Issue 10659031: Merge 144108 - [Sync] Disable search engines datatype by default. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1132_43/src/
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 10 #include "base/bind.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 void SyncTest::AddTestSwitches(CommandLine* cl) { 208 void SyncTest::AddTestSwitches(CommandLine* cl) {
209 // TODO(rsimha): Until we implement a fake Tango server against which tests 209 // TODO(rsimha): Until we implement a fake Tango server against which tests
210 // can run, we need to set the --sync-notification-method to "p2p". 210 // can run, we need to set the --sync-notification-method to "p2p".
211 if (!cl->HasSwitch(switches::kSyncNotificationMethod)) 211 if (!cl->HasSwitch(switches::kSyncNotificationMethod))
212 cl->AppendSwitchASCII(switches::kSyncNotificationMethod, "p2p"); 212 cl->AppendSwitchASCII(switches::kSyncNotificationMethod, "p2p");
213 213
214 // Disable non-essential access of external network resources. 214 // Disable non-essential access of external network resources.
215 if (!cl->HasSwitch(switches::kDisableBackgroundNetworking)) 215 if (!cl->HasSwitch(switches::kDisableBackgroundNetworking))
216 cl->AppendSwitch(switches::kDisableBackgroundNetworking); 216 cl->AppendSwitch(switches::kDisableBackgroundNetworking);
217
218 if (!cl->HasSwitch(switches::kEnableSyncSearchEngines))
219 cl->AppendSwitch(switches::kEnableSyncSearchEngines);
217 } 220 }
218 221
219 void SyncTest::AddOptionalTypesToCommandLine(CommandLine* cl) { 222 void SyncTest::AddOptionalTypesToCommandLine(CommandLine* cl) {
220 // TODO(sync): Remove this once sessions sync is enabled by default. 223 // TODO(sync): Remove this once sessions sync is enabled by default.
221 if (!cl->HasSwitch(switches::kEnableSyncTabs)) 224 if (!cl->HasSwitch(switches::kEnableSyncTabs))
222 cl->AppendSwitch(switches::kEnableSyncTabs); 225 cl->AppendSwitch(switches::kEnableSyncTabs);
223 } 226 }
224 227
225 // static 228 // static
226 Profile* SyncTest::MakeProfile(const FilePath::StringType name) { 229 Profile* SyncTest::MakeProfile(const FilePath::StringType name) {
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 788
786 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter, 789 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter,
787 const net::ProxyConfig& proxy_config) { 790 const net::ProxyConfig& proxy_config) {
788 base::WaitableEvent done(false, false); 791 base::WaitableEvent done(false, false);
789 BrowserThread::PostTask( 792 BrowserThread::PostTask(
790 BrowserThread::IO, FROM_HERE, 793 BrowserThread::IO, FROM_HERE,
791 base::Bind(&SetProxyConfigCallback, &done, 794 base::Bind(&SetProxyConfigCallback, &done,
792 make_scoped_refptr(context_getter), proxy_config)); 795 make_scoped_refptr(context_getter), proxy_config));
793 done.Wait(); 796 done.Wait();
794 } 797 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698