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

Unified Diff: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.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/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
diff --git a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
index 93179bd19c533fa3fd238a4f18df88bd9cd228e0..94c2eb8957a49628be9e0693b30c309425fd4099 100644
--- a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
+++ b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
@@ -224,17 +224,17 @@ ContentSuggestion PhysicalWebPageSuggestionsProvider::ConvertPhysicalWebPage(
}
// PhysicalWebListener implementation.
-void PhysicalWebPageSuggestionsProvider::OnFound(const std::string& url) {
+void PhysicalWebPageSuggestionsProvider::OnFound(const GURL& url) {
FetchPhysicalWebPages();
}
-void PhysicalWebPageSuggestionsProvider::OnLost(const std::string& url) {
+void PhysicalWebPageSuggestionsProvider::OnLost(const GURL& url) {
// TODO(vitaliii): Do not refetch, but just update the current state.
FetchPhysicalWebPages();
}
void PhysicalWebPageSuggestionsProvider::OnDistanceChanged(
- const std::string& url,
+ const GURL& url,
double distance_estimate) {
FetchPhysicalWebPages();
}

Powered by Google App Engine
This is Rietveld 408576698