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

Side by Side Diff: chrome/browser/sync/test_profile_sync_service.cc

Issue 10451058: sync: move invalidation version prefs out of SyncPrefs into InvalidatorStorage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review 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
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_profile_sync_service.h" 5 #include "chrome/browser/sync/test_profile_sync_service.h"
6 6
7 #include "chrome/browser/signin/signin_manager.h" 7 #include "chrome/browser/signin/signin_manager.h"
8 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" 8 #include "chrome/browser/sync/abstract_profile_sync_service_test.h"
9 #include "chrome/browser/sync/glue/data_type_controller.h" 9 #include "chrome/browser/sync/glue/data_type_controller.h"
10 #include "chrome/browser/sync/glue/sync_backend_host.h" 10 #include "chrome/browser/sync/glue/sync_backend_host.h"
(...skipping 13 matching lines...) Expand all
24 using browser_sync::sessions::SyncSessionSnapshot; 24 using browser_sync::sessions::SyncSessionSnapshot;
25 using syncable::Directory; 25 using syncable::Directory;
26 using syncable::ModelType; 26 using syncable::ModelType;
27 using sync_api::UserShare; 27 using sync_api::UserShare;
28 28
29 namespace browser_sync { 29 namespace browser_sync {
30 30
31 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( 31 SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest(
32 Profile* profile, 32 Profile* profile,
33 const base::WeakPtr<SyncPrefs>& sync_prefs, 33 const base::WeakPtr<SyncPrefs>& sync_prefs,
34 const base::WeakPtr<InvalidatorStorage>& invalidator_storage,
34 bool set_initial_sync_ended_on_init, 35 bool set_initial_sync_ended_on_init,
35 bool synchronous_init, 36 bool synchronous_init,
36 bool fail_initial_download, 37 bool fail_initial_download,
37 bool use_real_database) 38 bool use_real_database)
38 : browser_sync::SyncBackendHost( 39 : browser_sync::SyncBackendHost(
39 profile->GetDebugName(), profile, sync_prefs), 40 profile->GetDebugName(), profile, sync_prefs, invalidator_storage),
40 synchronous_init_(synchronous_init), 41 synchronous_init_(synchronous_init),
41 fail_initial_download_(fail_initial_download), 42 fail_initial_download_(fail_initial_download),
42 use_real_database_(use_real_database) {} 43 use_real_database_(use_real_database) {}
43 44
44 SyncBackendHostForProfileSyncTest::~SyncBackendHostForProfileSyncTest() {} 45 SyncBackendHostForProfileSyncTest::~SyncBackendHostForProfileSyncTest() {}
45 46
46 void SyncBackendHostForProfileSyncTest:: 47 void SyncBackendHostForProfileSyncTest::
47 SimulateSyncCycleCompletedInitialSyncEnded( 48 SimulateSyncCycleCompletedInitialSyncEnded(
48 const tracked_objects::Location& location) { 49 const tracked_objects::Location& location) {
49 syncable::ModelTypeSet sync_ended; 50 syncable::ModelTypeSet sync_ended;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 fail_initial_download_ = true; 219 fail_initial_download_ = true;
219 } 220 }
220 void TestProfileSyncService::set_use_real_database() { 221 void TestProfileSyncService::set_use_real_database() {
221 use_real_database_ = true; 222 use_real_database_ = true;
222 } 223 }
223 224
224 void TestProfileSyncService::CreateBackend() { 225 void TestProfileSyncService::CreateBackend() {
225 backend_.reset(new browser_sync::SyncBackendHostForProfileSyncTest( 226 backend_.reset(new browser_sync::SyncBackendHostForProfileSyncTest(
226 profile(), 227 profile(),
227 sync_prefs_.AsWeakPtr(), 228 sync_prefs_.AsWeakPtr(),
229 invalidator_storage_.AsWeakPtr(),
228 set_initial_sync_ended_on_init_, 230 set_initial_sync_ended_on_init_,
229 synchronous_backend_initialization_, 231 synchronous_backend_initialization_,
230 fail_initial_download_, 232 fail_initial_download_,
231 use_real_database_)); 233 use_real_database_));
232 } 234 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698