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

Side by Side Diff: chrome/browser/chromeos/dbus_thread_manager_chrome.cc

Issue 2319783002: mash: Allow a subset of D-Bus clients to be created in DBusThreadManager (Closed)
Patch Set: WIP, add DBusThreadManagerAsh and DBusThreadManagerChrome 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 "chrome/browser/chromeos/dbus_thread_manager_chrome.h"
6
7 #include <utility>
8
9 #include "chromeos/dbus/dbus_thread_manager.h"
10
11 namespace {
12
13 DBusThreadManagerChrome* g_instance = nullptr;
14
15 } // namespace
16
17 // static
18 DBusThreadManagerChrome* DBusThreadManagerChrome::Get() {
19 CHECK(g_instance);
20 return g_instance;
21 }
22
23 DBusThreadManagerChrome::DBusThreadManagerChrome() {
24 DCHECK(!g_instance);
25 g_instance = this;
26 DCHECK(chromeos::DBusThreadManager::Get());
27 }
28
29 DBusThreadManagerChrome::~DBusThreadManagerChrome() {
30 DCHECK_EQ(this, g_instance);
31 g_instance = nullptr;
32 }
33
34 //JAMES for now, just forward. In theory, chrome should own this one. But it's
35 // used in content/browser/tracing and extensions/browser/api/diagnostics
36 chromeos::DebugDaemonClient* DBusThreadManagerChrome::GetDebugDaemonClient() {
37 return chromeos::DBusThreadManager::Get()->GetDebugDaemonClient();
38 }
39
40 chromeos::SystemClockClient* DBusThreadManagerChrome::GetSystemClockClient() {
41 return chromeos::DBusThreadManager::Get()->GetSystemClockClient();
42 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus_thread_manager_chrome.h ('k') | chrome/browser/chromeos/system_logs/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698