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

Unified Diff: components/sync_driver/generic_change_processor.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/sync_driver/generic_change_processor.cc
diff --git a/components/sync_driver/generic_change_processor.cc b/components/sync_driver/generic_change_processor.cc
index 3a1f19f7b326453a1367020f31d694e995cab193..2bd0264ea732bd86c0d16b4330ddc019c5420eee 100644
--- a/components/sync_driver/generic_change_processor.cc
+++ b/components/sync_driver/generic_change_processor.cc
@@ -7,6 +7,7 @@
#include "base/location.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/thread_task_runner_handle.h"
#include "components/sync_driver/sync_api_component_factory.h"
#include "sync/api/sync_change.h"
#include "sync/api/sync_error.h"
@@ -115,12 +116,12 @@ GenericChangeProcessor::GenericChangeProcessor(
new base::WeakPtrFactory<syncer::AttachmentService>(
attachment_service_.get()));
attachment_service_proxy_ = syncer::AttachmentServiceProxy(
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
attachment_service_weak_ptr_factory_->GetWeakPtr());
UploadAllAttachmentsNotOnServer();
} else {
attachment_service_proxy_ = syncer::AttachmentServiceProxy(
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
base::WeakPtr<syncer::AttachmentService>());
}
}

Powered by Google App Engine
This is Rietveld 408576698