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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_impl.cc

Issue 2551023006: [Sync] SyncEngine 1.5: Fix all backend references in PSS. (Closed)
Patch Set: Fix Android. 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_impl.h" 5 #include "components/sync/driver/glue/sync_backend_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 555
556 // Fake a state change to initialize the SyncManager's cached invalidator 556 // Fake a state change to initialize the SyncManager's cached invalidator
557 // state. 557 // state.
558 OnInvalidatorStateChange(invalidator_->GetInvalidatorState()); 558 OnInvalidatorStateChange(invalidator_->GetInvalidatorState());
559 } 559 }
560 560
561 // Now that we've downloaded the control types, we can see if there are any 561 // Now that we've downloaded the control types, we can see if there are any
562 // experimental types to enable. This should be done before we inform 562 // experimental types to enable. This should be done before we inform
563 // the host to ensure they're visible in the customize screen. 563 // the host to ensure they're visible in the customize screen.
564 AddExperimentalTypes(); 564 AddExperimentalTypes();
565 host_->OnBackendInitialized(js_backend, debug_info_listener, cache_guid, 565 host_->OnEngineInitialized(js_backend, debug_info_listener, cache_guid, true);
566 true);
567 } 566 }
568 567
569 void SyncBackendHostImpl::HandleInitializationFailureOnFrontendLoop() { 568 void SyncBackendHostImpl::HandleInitializationFailureOnFrontendLoop() {
570 DCHECK(thread_checker_.CalledOnValidThread()); 569 DCHECK(thread_checker_.CalledOnValidThread());
571 host_->OnBackendInitialized(WeakHandle<JsBackend>(), 570 host_->OnEngineInitialized(WeakHandle<JsBackend>(),
572 WeakHandle<DataTypeDebugInfoListener>(), "", 571 WeakHandle<DataTypeDebugInfoListener>(), "",
573 false); 572 false);
574 } 573 }
575 574
576 void SyncBackendHostImpl::HandleSyncCycleCompletedOnFrontendLoop( 575 void SyncBackendHostImpl::HandleSyncCycleCompletedOnFrontendLoop(
577 const SyncCycleSnapshot& snapshot) { 576 const SyncCycleSnapshot& snapshot) {
578 DCHECK(thread_checker_.CalledOnValidThread()); 577 DCHECK(thread_checker_.CalledOnValidThread());
579 578
580 last_snapshot_ = snapshot; 579 last_snapshot_ = snapshot;
581 580
582 SDVLOG(1) << "Got snapshot " << snapshot.ToString(); 581 SDVLOG(1) << "Got snapshot " << snapshot.ToString();
583 582
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 const SyncManager::ClearServerDataCallback& frontend_callback) { 761 const SyncManager::ClearServerDataCallback& frontend_callback) {
763 DCHECK(thread_checker_.CalledOnValidThread()); 762 DCHECK(thread_checker_.CalledOnValidThread());
764 frontend_callback.Run(); 763 frontend_callback.Run();
765 } 764 }
766 765
767 } // namespace syncer 766 } // namespace syncer
768 767
769 #undef SDVLOG 768 #undef SDVLOG
770 769
771 #undef SLOG 770 #undef SLOG
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.h ('k') | components/sync/driver/glue/sync_backend_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698