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

Unified Diff: components/physical_web/data_source/fake_physical_web_data_source.cc

Issue 2565023002: Use GURLs in Physical Web data source (Closed)
Patch Set: Created 4 years 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: components/physical_web/data_source/fake_physical_web_data_source.cc
diff --git a/components/physical_web/data_source/fake_physical_web_data_source.cc b/components/physical_web/data_source/fake_physical_web_data_source.cc
index adc64566cf97f142e07b420a7c28d97a6883472c..169f23608ebd65e5700414b4c48547ddd4f6e55f 100644
--- a/components/physical_web/data_source/fake_physical_web_data_source.cc
+++ b/components/physical_web/data_source/fake_physical_web_data_source.cc
@@ -91,18 +91,18 @@ void FakePhysicalWebDataSource::SetMetadata(
metadata_ = std::move(metadata);
}
-void FakePhysicalWebDataSource::NotifyOnFound(const std::string& url) {
+void FakePhysicalWebDataSource::NotifyOnFound(const GURL& url) {
for (PhysicalWebListener& observer : observer_list_)
observer.OnFound(url);
}
-void FakePhysicalWebDataSource::NotifyOnLost(const std::string& url) {
+void FakePhysicalWebDataSource::NotifyOnLost(const GURL& url) {
for (PhysicalWebListener& observer : observer_list_)
observer.OnLost(url);
}
void FakePhysicalWebDataSource::NotifyOnDistanceChanged(
- const std::string& url,
+ const GURL& url,
double distance_estimate) {
for (PhysicalWebListener& observer : observer_list_)
observer.OnDistanceChanged(url, distance_estimate);

Powered by Google App Engine
This is Rietveld 408576698