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

Unified Diff: sync/syncable/directory_backing_store.cc

Issue 2033933002: Remove use of deprecated MessageLoop methods in sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: sync/syncable/directory_backing_store.cc
diff --git a/sync/syncable/directory_backing_store.cc b/sync/syncable/directory_backing_store.cc
index a409746d977dc98b543222f5f734f17c6cbd6ea5..b3209f2ee7f18ae00947beb460eb39b2e42f04b4 100644
--- a/sync/syncable/directory_backing_store.cc
+++ b/sync/syncable/directory_backing_store.cc
@@ -11,10 +11,12 @@
#include <unordered_set>
#include "base/base64.h"
+#include "base/location.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
#include "base/rand_util.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
@@ -195,8 +197,8 @@ void OnSqliteError(const base::Closure& catastrophic_error_handler,
// At this point sql::* and DirectoryBackingStore may be on the callstack so
// don't invoke the error handler directly. Instead, PostTask to this thread
// to avoid potential reentrancy issues.
- base::MessageLoop::current()->PostTask(FROM_HERE,
- catastrophic_error_handler);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ catastrophic_error_handler);
}
}
« sync/engine/sync_scheduler_impl.cc ('K') | « sync/internal_api/sync_encryption_handler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698