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

Unified Diff: components/leveldb/leveldb_app.cc

Issue 2375663002: Replace MessageLoop::current()->task_runner() with ThreadTaskRunnerHandle::Get(). (Closed)
Patch Set: rebase Created 4 years, 3 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/leveldb/leveldb_app.cc
diff --git a/components/leveldb/leveldb_app.cc b/components/leveldb/leveldb_app.cc
index b6e2aba543dd678bdfc4e88244d1176bf4ccdb31..55eb5908b4c2c596301fb3f6e2f41bc584f83dcb 100644
--- a/components/leveldb/leveldb_app.cc
+++ b/components/leveldb/leveldb_app.cc
@@ -4,7 +4,7 @@
#include "components/leveldb/leveldb_app.h"
-#include "base/message_loop/message_loop.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "components/leveldb/leveldb_service_impl.h"
#include "services/shell/public/cpp/interface_registry.h"
@@ -27,8 +27,7 @@ bool LevelDBApp::OnConnect(const shell::Identity& remote_identity,
void LevelDBApp::Create(const shell::Identity& remote_identity,
leveldb::mojom::LevelDBServiceRequest request) {
if (!service_)
- service_.reset(
- new LevelDBServiceImpl(base::MessageLoop::current()->task_runner()));
+ service_.reset(new LevelDBServiceImpl(base::ThreadTaskRunnerHandle::Get()));
bindings_.AddBinding(service_.get(), std::move(request));
}
« no previous file with comments | « components/favicon/core/large_icon_service_unittest.cc ('k') | components/previews/core/previews_black_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698