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

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: 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/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..2419a6d02058eb527661372877b4c83c96ac565d 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
@@ -7,6 +7,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "components/physical_web/data_source/physical_web_listener.h"
+#include "url/gurl.h"
using base::ListValue;
using base::DictionaryValue;
@@ -91,18 +92,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