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: components/sync/driver/glue/sync_backend_host_core.cc

Issue 2555433003: [Sync] Plumb initial type set from engine to DTM. (Closed)
Patch Set: Rebase. Created 4 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/sync/driver/glue/sync_backend_host_core.h" 5 #include "components/sync/driver/glue/sync_backend_host_core.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 479
480 if (!sync_manager_->InitialSyncEndedTypes().HasAll(ControlTypes())) { 480 if (!sync_manager_->InitialSyncEndedTypes().HasAll(ControlTypes())) {
481 LOG(ERROR) << "Failed to download control types"; 481 LOG(ERROR) << "Failed to download control types";
482 host_.Call(FROM_HERE, 482 host_.Call(FROM_HERE,
483 &SyncBackendHostImpl::HandleInitializationFailureOnFrontendLoop); 483 &SyncBackendHostImpl::HandleInitializationFailureOnFrontendLoop);
484 return; 484 return;
485 } 485 }
486 486
487 host_.Call(FROM_HERE, 487 host_.Call(FROM_HERE,
488 &SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop, 488 &SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop,
489 js_backend_, debug_info_listener_, 489 registrar_->GetLastConfiguredTypes(), js_backend_,
490 debug_info_listener_,
490 base::Passed(sync_manager_->GetModelTypeConnectorProxy()), 491 base::Passed(sync_manager_->GetModelTypeConnectorProxy()),
491 sync_manager_->cache_guid()); 492 sync_manager_->cache_guid());
492 493
493 js_backend_.Reset(); 494 js_backend_.Reset();
494 debug_info_listener_.Reset(); 495 debug_info_listener_.Reset();
495 } 496 }
496 497
497 void SyncBackendHostCore::DoSetDecryptionPassphrase( 498 void SyncBackendHostCore::DoSetDecryptionPassphrase(
498 const std::string& passphrase) { 499 const std::string& passphrase) {
499 DCHECK(thread_checker_.CalledOnValidThread()); 500 DCHECK(thread_checker_.CalledOnValidThread());
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 689 }
689 690
690 void SyncBackendHostCore::ClearServerDataDone( 691 void SyncBackendHostCore::ClearServerDataDone(
691 const base::Closure& frontend_callback) { 692 const base::Closure& frontend_callback) {
692 DCHECK(thread_checker_.CalledOnValidThread()); 693 DCHECK(thread_checker_.CalledOnValidThread());
693 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, 694 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop,
694 frontend_callback); 695 frontend_callback);
695 } 696 }
696 697
697 } // namespace syncer 698 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/generic_change_processor_unittest.cc ('k') | components/sync/driver/glue/sync_backend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698