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

Unified Diff: ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.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
« no previous file with comments | « no previous file | ios/chrome/common/physical_web/physical_web_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.mm
diff --git a/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.mm b/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.mm
index 41ce75763a7144104d88c660a349203692f862c8..12edafa0a6d3178384cd40a280c991762cbeffec 100644
--- a/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.mm
+++ b/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.mm
@@ -26,6 +26,9 @@ void IOSChromePhysicalWebDataSource::StartDiscovery(
[scanner_ stop];
scanner_.reset([[PhysicalWebScanner alloc] initWithDelegate:nil]);
+
+ // Configure the scanner to notify us when a URL is no longer nearby.
+ [scanner_ setOnLostDetectionEnabled:YES];
[scanner_ setNetworkRequestEnabled:network_request_enabled];
[scanner_ start];
}
« no previous file with comments | « no previous file | ios/chrome/common/physical_web/physical_web_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698