Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / chromeos / system_logs / dbus_log_source.cc
blob7f3b4fcded70fd5fcffd07f4e862e3350e2172ef
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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/system_logs/dbus_log_source.h"
7 #include "content/public/browser/browser_thread.h"
8 #include "dbus/dbus_statistics.h"
10 const char kDBusLogEntryShort[] = "dbus_summary";
11 const char kDBusLogEntryLong[] = "dbus_details";
13 namespace system_logs {
15 DBusLogSource::DBusLogSource() : SystemLogsSource("DBus") {
18 DBusLogSource::~DBusLogSource() {
21 void DBusLogSource::Fetch(const SysLogsSourceCallback& callback) {
22 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
23 DCHECK(!callback.is_null());
25 SystemLogsResponse response;
26 response[kDBusLogEntryShort] = dbus::statistics::GetAsString(
27 dbus::statistics::SHOW_INTERFACE,
28 dbus::statistics::FORMAT_ALL);
29 response[kDBusLogEntryLong] = dbus::statistics::GetAsString(
30 dbus::statistics::SHOW_METHOD,
31 dbus::statistics::FORMAT_TOTALS);
32 callback.Run(&response);
35 } // namespace system_logs