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

Unified Diff: ios/chrome/common/physical_web/physical_web_device.mm

Issue 2413923002: Enable lost URL detection in the Physical Web scanner (Closed)
Patch Set: fixes Created 4 years, 2 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: ios/chrome/common/physical_web/physical_web_device.mm
diff --git a/ios/chrome/common/physical_web/physical_web_device.mm b/ios/chrome/common/physical_web/physical_web_device.mm
index dc6553d491441472d833f9e9e85f5da34b4c4126..918a0607e9d3d01fadb130ea2aee7546c8f99432 100644
--- a/ios/chrome/common/physical_web/physical_web_device.mm
+++ b/ios/chrome/common/physical_web/physical_web_device.mm
@@ -17,6 +17,7 @@
int rssi_;
int transmitPower_;
double rank_;
+ base::scoped_nsobject<NSDate> scanTimestamp_;
}
@synthesize rssi = rssi_;
@@ -30,7 +31,8 @@
description:(NSString*)description
transmitPower:(int)transmitPower
rssi:(int)rssi
- rank:(double)rank {
+ rank:(double)rank
+ scanTimestamp:(NSDate*)scanTimestamp {
self = [super init];
if (self) {
url_.reset([url retain]);
@@ -41,6 +43,7 @@
transmitPower_ = transmitPower;
rssi_ = rssi;
rank_ = rank > physical_web::kMaxRank ? physical_web::kMaxRank : rank;
+ scanTimestamp_.reset([scanTimestamp retain]);
}
return self;
}
@@ -70,4 +73,12 @@
return description_;
}
+- (NSDate*)scanTimestamp {
+ return scanTimestamp_;
+}
+
+- (void)setScanTimestamp:(NSDate*)value {
+ scanTimestamp_.reset([value retain]);
+}
+
@end
« no previous file with comments | « ios/chrome/common/physical_web/physical_web_device.h ('k') | ios/chrome/common/physical_web/physical_web_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698