diff options
Diffstat (limited to 'device/nfc/nfc_peer_chromeos.cc')
-rw-r--r-- | device/nfc/nfc_peer_chromeos.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/device/nfc/nfc_peer_chromeos.cc b/device/nfc/nfc_peer_chromeos.cc index a6e864c..4ef1804 100644 --- a/device/nfc/nfc_peer_chromeos.cc +++ b/device/nfc/nfc_peer_chromeos.cc @@ -131,12 +131,10 @@ void NfcPeerChromeOS::RecordPropertiesReceived( VLOG(1) << "Record properties received for: " << object_path.value(); // Check if the found record belongs to this device. - NfcDeviceClient::Properties* device_properties = - DBusThreadManager::Get()->GetNfcDeviceClient()-> - GetProperties(object_path_); - DCHECK(device_properties); bool record_found = false; - const ObjectPathVector& records = device_properties->records.value(); + const ObjectPathVector& records = + DBusThreadManager::Get()->GetNfcRecordClient()-> + GetRecordsForDevice(object_path_); for (ObjectPathVector::const_iterator iter = records.begin(); iter != records.end(); ++iter) { if (*iter == object_path) { @@ -190,7 +188,7 @@ void NfcPeerChromeOS::AddRecord(const dbus::ObjectPath& object_path) { message_.AddRecord(record); records_[object_path] = record; FOR_EACH_OBSERVER(NfcPeer::Observer, observers_, - RecordsReceived(this, record)); + RecordReceived(this, record)); } } // namespace chromeos |