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_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/signin/signin_manager_factory.h" | 8 #include "chrome/browser/signin/signin_manager_factory.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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 initial_download_closure_.Reset(); | 172 initial_download_closure_.Reset(); |
173 } | 173 } |
174 } | 174 } |
175 | 175 |
176 void SyncBackendHostForProfileSyncTest::EmitOnInvalidatorStateChange( | 176 void SyncBackendHostForProfileSyncTest::EmitOnInvalidatorStateChange( |
177 syncer::InvalidatorState state) { | 177 syncer::InvalidatorState state) { |
178 frontend()->OnInvalidatorStateChange(state); | 178 frontend()->OnInvalidatorStateChange(state); |
179 } | 179 } |
180 | 180 |
181 void SyncBackendHostForProfileSyncTest::EmitOnIncomingInvalidation( | 181 void SyncBackendHostForProfileSyncTest::EmitOnIncomingInvalidation( |
182 const syncer::ObjectIdInvalidationMap& invalidation_map, | 182 const syncer::ObjectIdInvalidationMap& invalidation_map) { |
183 const syncer::IncomingInvalidationSource source) { | 183 frontend()->OnIncomingInvalidation(invalidation_map); |
184 frontend()->OnIncomingInvalidation(invalidation_map, source); | |
185 } | 184 } |
186 | 185 |
187 void SyncBackendHostForProfileSyncTest::ContinueInitialization( | 186 void SyncBackendHostForProfileSyncTest::ContinueInitialization( |
188 const syncer::WeakHandle<syncer::JsBackend>& js_backend, | 187 const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
189 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 188 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
190 debug_info_listener, | 189 debug_info_listener, |
191 syncer::ModelTypeSet restored_types) { | 190 syncer::ModelTypeSet restored_types) { |
192 SyncBackendHost::HandleSyncManagerInitializationOnFrontendLoop( | 191 SyncBackendHost::HandleSyncManagerInitializationOnFrontendLoop( |
193 js_backend, debug_info_listener, restored_types); | 192 js_backend, debug_info_listener, restored_types); |
194 } | 193 } |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 profile(), | 287 profile(), |
289 sync_prefs_.AsWeakPtr(), | 288 sync_prefs_.AsWeakPtr(), |
290 invalidator_storage_.AsWeakPtr(), | 289 invalidator_storage_.AsWeakPtr(), |
291 id_factory_, | 290 id_factory_, |
292 callback_, | 291 callback_, |
293 set_initial_sync_ended_on_init_, | 292 set_initial_sync_ended_on_init_, |
294 synchronous_backend_initialization_, | 293 synchronous_backend_initialization_, |
295 fail_initial_download_, | 294 fail_initial_download_, |
296 storage_option_)); | 295 storage_option_)); |
297 } | 296 } |
OLD | NEW |