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

Unified Diff: components/history/core/browser/history_backend.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 side-by-side diff with in-line comments
Download patch
Index: components/history/core/browser/history_backend.cc
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
index c29fd9e7a9a4e77a727a38a2a0f6c228ab75de4f..04963fb099de5f2703af9aeeda44f8eb8c0ec08f 100644
--- a/components/history/core/browser/history_backend.cc
+++ b/components/history/core/browser/history_backend.cc
@@ -20,6 +20,7 @@
#include "base/metrics/histogram_macros.h"
#include "base/rand_util.h"
#include "base/sequenced_task_runner.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
@@ -227,7 +228,8 @@ HistoryBackend::~HistoryBackend() {
if (!backend_destroy_task_.is_null()) {
// Notify an interested party (typically a unit test) that we're done.
DCHECK(backend_destroy_message_loop_);
- backend_destroy_message_loop_->PostTask(FROM_HERE, backend_destroy_task_);
+ backend_destroy_message_loop_->task_runner()->PostTask(
+ FROM_HERE, backend_destroy_task_);
}
#if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698