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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_core.cc

Issue 158953004: sync: Move migration signal out of snapshot (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
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 "chrome/browser/sync/glue/sync_backend_host_core.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_core.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "chrome/browser/sync/glue/device_info.h" 10 #include "chrome/browser/sync/glue/device_info.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 const syncer::SyncProtocolError& sync_error) { 310 const syncer::SyncProtocolError& sync_error) {
311 if (!sync_loop_) 311 if (!sync_loop_)
312 return; 312 return;
313 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 313 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
314 host_.Call( 314 host_.Call(
315 FROM_HERE, 315 FROM_HERE,
316 &SyncBackendHostImpl::HandleActionableErrorEventOnFrontendLoop, 316 &SyncBackendHostImpl::HandleActionableErrorEventOnFrontendLoop,
317 sync_error); 317 sync_error);
318 } 318 }
319 319
320 void SyncBackendHostCore::OnMigrationRequested(syncer::ModelTypeSet types) {
321 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
322 host_.Call(
323 FROM_HERE,
324 &SyncBackendHostImpl::HandleMigrationRequestedOnFrontendLoop,
325 types);
326 }
327
320 void SyncBackendHostCore::DoOnInvalidatorStateChange( 328 void SyncBackendHostCore::DoOnInvalidatorStateChange(
321 syncer::InvalidatorState state) { 329 syncer::InvalidatorState state) {
322 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 330 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
323 sync_manager_->OnInvalidatorStateChange(state); 331 sync_manager_->OnInvalidatorStateChange(state);
324 } 332 }
325 333
326 void SyncBackendHostCore::DoOnIncomingInvalidation( 334 void SyncBackendHostCore::DoOnIncomingInvalidation(
327 const syncer::ObjectIdInvalidationMap& invalidation_map) { 335 const syncer::ObjectIdInvalidationMap& invalidation_map) {
328 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 336 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
329 sync_manager_->OnIncomingInvalidation(invalidation_map); 337 sync_manager_->OnIncomingInvalidation(invalidation_map);
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 this, &SyncBackendHostCore::SaveChanges); 621 this, &SyncBackendHostCore::SaveChanges);
614 } 622 }
615 623
616 void SyncBackendHostCore::SaveChanges() { 624 void SyncBackendHostCore::SaveChanges() {
617 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 625 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
618 sync_manager_->SaveChanges(); 626 sync_manager_->SaveChanges();
619 } 627 }
620 628
621 } // namespace browser_sync 629 } // namespace browser_sync
622 630
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698