| Index: device/bluetooth/bluetooth_device.cc
|
| diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
|
| index 7d37591f5ea21483e15af7ab315436d3e8a6e70e..8b9909960961c5b1afe942e01e1684cd26c87cdc 100644
|
| --- a/device/bluetooth/bluetooth_device.cc
|
| +++ b/device/bluetooth/bluetooth_device.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/stl_util.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/time/time.h"
|
| #include "base/values.h"
|
| #include "device/bluetooth/bluetooth_adapter.h"
|
| #include "device/bluetooth/bluetooth_gatt_connection.h"
|
| @@ -23,7 +24,8 @@ namespace device {
|
| BluetoothDevice::BluetoothDevice(BluetoothAdapter* adapter)
|
| : adapter_(adapter),
|
| gatt_services_discovery_complete_(false),
|
| - services_data_(new base::DictionaryValue()) {}
|
| + services_data_(new base::DictionaryValue()),
|
| + last_update_time_(base::Time()) {}
|
|
|
| BluetoothDevice::~BluetoothDevice() {
|
| DidDisconnectGatt();
|
| @@ -387,4 +389,8 @@ void BluetoothDevice::Pair(PairingDelegate* pairing_delegate,
|
| NOTREACHED();
|
| }
|
|
|
| +void BluetoothDevice::UpdateTimestamp() {
|
| + last_update_time_ = base::Time::NowFromSystemTime();
|
| +}
|
| +
|
| } // namespace device
|
|
|