OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/android/launcher_thread.h" |
| 6 |
| 7 #include "jni/LauncherThread_jni.h" |
| 8 |
| 9 namespace content { |
| 10 namespace android { |
| 11 |
| 12 namespace { |
| 13 base::LazyInstance<LauncherThread>::Leaky g_launcher_thread; |
| 14 } |
| 15 |
| 16 base::MessageLoop* LauncherThread::GetMessageLoop() { |
| 17 return g_launcher_thread.Get().java_handler_thread_.message_loop(); |
| 18 } |
| 19 |
| 20 LauncherThread::LauncherThread() |
| 21 : java_handler_thread_(Java_LauncherThread_getHandlerThread( |
| 22 base::android::AttachCurrentThread())) {} |
| 23 |
| 24 LauncherThread::~LauncherThread() {} |
| 25 |
| 26 } // namespace android |
| 27 } // namespace content |
OLD | NEW |