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

Side by Side Diff: components/sync_driver/glue/sync_backend_host_impl.cc

Issue 2082333002: Remove calls to deprecated MessageLoop methods in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 if (initialized()) { 488 if (initialized()) {
489 CHECK(registrar_.get()); 489 CHECK(registrar_.get());
490 registrar_->GetModelSafeRoutingInfo(out); 490 registrar_->GetModelSafeRoutingInfo(out);
491 } else { 491 } else {
492 NOTREACHED(); 492 NOTREACHED();
493 } 493 }
494 } 494 }
495 495
496 void SyncBackendHostImpl::FlushDirectory() const { 496 void SyncBackendHostImpl::FlushDirectory() const {
497 DCHECK(initialized()); 497 DCHECK(initialized());
498 registrar_->sync_thread()->message_loop()->PostTask(FROM_HERE, 498 registrar_->sync_thread()->task_runner()->PostTask(
499 base::Bind(&SyncBackendHostCore::SaveChanges, core_)); 499 FROM_HERE, base::Bind(&SyncBackendHostCore::SaveChanges, core_));
500 } 500 }
501 501
502 void SyncBackendHostImpl::RequestBufferedProtocolEventsAndEnableForwarding() { 502 void SyncBackendHostImpl::RequestBufferedProtocolEventsAndEnableForwarding() {
503 registrar_->sync_thread()->task_runner()->PostTask( 503 registrar_->sync_thread()->task_runner()->PostTask(
504 FROM_HERE, 504 FROM_HERE,
505 base::Bind( 505 base::Bind(
506 &SyncBackendHostCore::SendBufferedProtocolEventsAndEnableForwarding, 506 &SyncBackendHostCore::SendBufferedProtocolEventsAndEnableForwarding,
507 core_)); 507 core_));
508 } 508 }
509 509
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) { 864 const syncer::SyncManager::ClearServerDataCallback& frontend_callback) {
865 DCHECK(ui_thread_->BelongsToCurrentThread()); 865 DCHECK(ui_thread_->BelongsToCurrentThread());
866 frontend_callback.Run(); 866 frontend_callback.Run();
867 } 867 }
868 868
869 } // namespace browser_sync 869 } // namespace browser_sync
870 870
871 #undef SDVLOG 871 #undef SDVLOG
872 872
873 #undef SLOG 873 #undef SLOG
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698