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

Unified Diff: device/bluetooth/bluetooth_adapter.cc

Issue 1587723007: bluetooth: Add Bluetooth events to chrome://device-log/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_adapter.cc
diff --git a/device/bluetooth/bluetooth_adapter.cc b/device/bluetooth/bluetooth_adapter.cc
index 2f90428c83bec10c7a821e17e2ff7941837cf55f..74e2d57c60874ec84bf7140fd30fb351384909ca 100644
--- a/device/bluetooth/bluetooth_adapter.cc
+++ b/device/bluetooth/bluetooth_adapter.cc
@@ -10,6 +10,7 @@
#include "base/metrics/histogram_macros.h"
#include "base/stl_util.h"
#include "build/build_config.h"
+#include "components/device_event_log/device_event_log.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/bluetooth_discovery_session.h"
#include "device/bluetooth/bluetooth_discovery_session_outcome.h"
@@ -164,7 +165,7 @@ BluetoothAdapter::~BluetoothAdapter() {
void BluetoothAdapter::OnStartDiscoverySession(
scoped_ptr<BluetoothDiscoveryFilter> discovery_filter,
const DiscoverySessionCallback& callback) {
- VLOG(1) << "BluetoothAdapter::OnStartDiscoverySession";
+ BLUETOOTH_LOG(EVENT) << "BluetoothAdapter::OnStartDiscoverySession";
RecordBluetoothDiscoverySessionStartOutcome(
UMABluetoothDiscoverySessionOutcome::SUCCESS);
@@ -178,7 +179,8 @@ void BluetoothAdapter::OnStartDiscoverySession(
void BluetoothAdapter::OnStartDiscoverySessionError(
const ErrorCallback& callback,
UMABluetoothDiscoverySessionOutcome outcome) {
- VLOG(1) << "OnStartDiscoverySessionError: " << static_cast<int>(outcome);
+ BLUETOOTH_LOG(ERROR) << "OnStartDiscoverySessionError: "
+ << static_cast<int>(outcome);
RecordBluetoothDiscoverySessionStartOutcome(outcome);
callback.Run();
}

Powered by Google App Engine
This is Rietveld 408576698