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

Unified Diff: device/bluetooth/bluetooth_classic_device_mac.mm

Issue 1842223003: Remove outdated devices from Android device chooser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test for ItemChooserDialog Created 4 years, 8 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_classic_device_mac.mm
diff --git a/device/bluetooth/bluetooth_classic_device_mac.mm b/device/bluetooth/bluetooth_classic_device_mac.mm
index 985596ecfc59873e8797f52d9690489597abda9c..d14f2703c98ed2b8b4ca45cf78a5044726947094 100644
--- a/device/bluetooth/bluetooth_classic_device_mac.mm
+++ b/device/bluetooth/bluetooth_classic_device_mac.mm
@@ -13,6 +13,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/sys_string_conversions.h"
+#include "base/time/time.h"
#include "device/bluetooth/bluetooth_socket_mac.h"
#include "device/bluetooth/bluetooth_uuid.h"
@@ -252,8 +253,9 @@ void BluetoothClassicDeviceMac::CreateGattConnection(
error_callback.Run(ERROR_UNSUPPORTED_DEVICE);
}
-NSDate* BluetoothClassicDeviceMac::GetLastUpdateTime() const {
- return [device_ getLastInquiryUpdate];
+base::Time BluetoothClassicDeviceMac::GetLastUpdateTime() const {
+ return base::Time::FromDoubleT(
+ [[device_ getLastInquiryUpdate] timeIntervalSince1970]);
}
int BluetoothClassicDeviceMac::GetHostTransmitPower(

Powered by Google App Engine
This is Rietveld 408576698