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

Unified Diff: ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.mm

Issue 2561493002: Pass Physical Web metadata through a struct (Closed)
Patch Set: Some ios compilation issues Created 3 years, 11 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/browser/physical_web/ios_chrome_physical_web_data_source.mm
diff --git a/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.mm b/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.mm
index f2dcdeea51e9cca922f4e3948db359491f40c947..250640d4df577bf53b2ca8936540d36e1290a6ba 100644
--- a/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.mm
+++ b/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.mm
@@ -52,6 +52,14 @@ std::unique_ptr<base::ListValue> IOSChromePhysicalWebDataSource::GetMetadata() {
return [scanner_ metadata];
}
+std::unique_ptr<MetadataList>
mattreynolds 2017/01/11 20:54:50 physical_web:: (here and in the MakeUnique call be
cco3 2017/01/11 22:51:02 Done.
+IOSChromePhysicalWebDataSource::GetMetadataList() {
+ if (!scanner_) {
+ return base::MakeUnique<MetadataList>();
+ }
+ return [scanner_ metadataList];
+}
+
bool IOSChromePhysicalWebDataSource::HasUnresolvedDiscoveries() {
return [scanner_ unresolvedBeaconsCount] > 0;
}

Powered by Google App Engine
This is Rietveld 408576698