| OLD | NEW | 
|---|
| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 204   // Disable non-essential access of external network resources. | 204   // Disable non-essential access of external network resources. | 
| 205   if (!cl->HasSwitch(switches::kDisableBackgroundNetworking)) | 205   if (!cl->HasSwitch(switches::kDisableBackgroundNetworking)) | 
| 206     cl->AppendSwitch(switches::kDisableBackgroundNetworking); | 206     cl->AppendSwitch(switches::kDisableBackgroundNetworking); | 
| 207 | 207 | 
| 208   // TODO(sync): remove this once keystore encryption is enabled by default. | 208   // TODO(sync): remove this once keystore encryption is enabled by default. | 
| 209   if (!cl->HasSwitch(switches::kSyncKeystoreEncryption)) | 209   if (!cl->HasSwitch(switches::kSyncKeystoreEncryption)) | 
| 210     cl->AppendSwitch(switches::kSyncKeystoreEncryption); | 210     cl->AppendSwitch(switches::kSyncKeystoreEncryption); | 
| 211 | 211 | 
| 212   if (!cl->HasSwitch(switches::kSyncShortInitialRetryOverride)) | 212   if (!cl->HasSwitch(switches::kSyncShortInitialRetryOverride)) | 
| 213     cl->AppendSwitch(switches::kSyncShortInitialRetryOverride); | 213     cl->AppendSwitch(switches::kSyncShortInitialRetryOverride); | 
|  | 214 | 
|  | 215   // TODO(sync): Fix enable_disable_test.cc to play nice with priority | 
|  | 216   // preferences. | 
|  | 217   if (!cl->HasSwitch(switches::kDisableSyncPriorityPreferences)) | 
|  | 218     cl->AppendSwitch(switches::kDisableSyncPriorityPreferences); | 
| 214 } | 219 } | 
| 215 | 220 | 
| 216 void SyncTest::AddOptionalTypesToCommandLine(CommandLine* cl) {} | 221 void SyncTest::AddOptionalTypesToCommandLine(CommandLine* cl) {} | 
| 217 | 222 | 
| 218 // static | 223 // static | 
| 219 Profile* SyncTest::MakeProfile(const base::FilePath::StringType name) { | 224 Profile* SyncTest::MakeProfile(const base::FilePath::StringType name) { | 
| 220   base::FilePath path; | 225   base::FilePath path; | 
| 221   PathService::Get(chrome::DIR_USER_DATA, &path); | 226   PathService::Get(chrome::DIR_USER_DATA, &path); | 
| 222   path = path.Append(name); | 227   path = path.Append(name); | 
| 223 | 228 | 
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 841 | 846 | 
| 842 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter, | 847 void SyncTest::SetProxyConfig(net::URLRequestContextGetter* context_getter, | 
| 843                               const net::ProxyConfig& proxy_config) { | 848                               const net::ProxyConfig& proxy_config) { | 
| 844   base::WaitableEvent done(false, false); | 849   base::WaitableEvent done(false, false); | 
| 845   BrowserThread::PostTask( | 850   BrowserThread::PostTask( | 
| 846       BrowserThread::IO, FROM_HERE, | 851       BrowserThread::IO, FROM_HERE, | 
| 847       base::Bind(&SetProxyConfigCallback, &done, | 852       base::Bind(&SetProxyConfigCallback, &done, | 
| 848                  make_scoped_refptr(context_getter), proxy_config)); | 853                  make_scoped_refptr(context_getter), proxy_config)); | 
| 849   done.Wait(); | 854   done.Wait(); | 
| 850 } | 855 } | 
| OLD | NEW | 
|---|