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

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

Issue 2565023002: Use GURLs in Physical Web data source (Closed)
Patch Set: Register missing dependencies 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/physical_web_data_source_impl.cc
diff --git a/components/physical_web/data_source/physical_web_data_source_impl.cc b/components/physical_web/data_source/physical_web_data_source_impl.cc
index c73f2c5386111ae7fbbdda9a43fa4df1b8fe5b1e..86b4c185a14c34328c6e4c36de6b023f0730e925 100644
--- a/components/physical_web/data_source/physical_web_data_source_impl.cc
+++ b/components/physical_web/data_source/physical_web_data_source_impl.cc
@@ -23,18 +23,18 @@ void PhysicalWebDataSourceImpl::UnregisterListener(
observer_list_.RemoveObserver(physical_web_listener);
}
-void PhysicalWebDataSourceImpl::NotifyOnFound(const std::string& url) {
+void PhysicalWebDataSourceImpl::NotifyOnFound(const GURL& url) {
for (PhysicalWebListener& observer : observer_list_)
observer.OnFound(url);
}
-void PhysicalWebDataSourceImpl::NotifyOnLost(const std::string& url) {
+void PhysicalWebDataSourceImpl::NotifyOnLost(const GURL& url) {
for (PhysicalWebListener& observer : observer_list_)
observer.OnLost(url);
}
void PhysicalWebDataSourceImpl::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