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)); |
} |