| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "device/bluetooth/dbus/dbus_thread_manager_linux.h" | 5 #include "device/bluetooth/dbus/dbus_thread_manager_linux.h" |
| 6 | 6 |
| 7 #include "base/threading/thread.h" | 7 #include "base/threading/thread.h" |
| 8 #include "dbus/bus.h" | 8 #include "dbus/bus.h" |
| 9 | 9 |
| 10 namespace bluez { | 10 namespace bluez { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Ensure that we only shutdown LinuxDBusManager once. | 57 // Ensure that we only shutdown LinuxDBusManager once. |
| 58 CHECK(g_linux_dbus_manager); | 58 CHECK(g_linux_dbus_manager); |
| 59 DBusThreadManagerLinux* dbus_thread_manager = g_linux_dbus_manager; | 59 DBusThreadManagerLinux* dbus_thread_manager = g_linux_dbus_manager; |
| 60 g_linux_dbus_manager = NULL; | 60 g_linux_dbus_manager = NULL; |
| 61 delete dbus_thread_manager; | 61 delete dbus_thread_manager; |
| 62 VLOG(1) << "LinuxDBusManager Shutdown completed"; | 62 VLOG(1) << "LinuxDBusManager Shutdown completed"; |
| 63 } | 63 } |
| 64 | 64 |
| 65 // static | 65 // static |
| 66 DBusThreadManagerLinux* DBusThreadManagerLinux::Get() { | 66 DBusThreadManagerLinux* DBusThreadManagerLinux::Get() { |
| 67 CHECK(g_linux_dbus_manager) | 67 // LinuxDBusManager::Get() called before Initialize() |
| 68 << "LinuxDBusManager::Get() called before Initialize()"; | 68 CHECK(g_linux_dbus_manager); |
| 69 return g_linux_dbus_manager; | 69 return g_linux_dbus_manager; |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace bluez | 72 } // namespace bluez |
| OLD | NEW |