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

Unified Diff: ios/chrome/browser/history/history_backend_client_impl.cc

Issue 1924773002: TopSites: filter out non-WebSafe URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@topsites_cleanup
Patch Set: comment Created 4 years, 8 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
« no previous file with comments | « ios/chrome/browser/history/history_backend_client_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/history/history_backend_client_impl.cc
diff --git a/ios/chrome/browser/history/history_backend_client_impl.cc b/ios/chrome/browser/history/history_backend_client_impl.cc
index 4100bce855b43388fb2e3ac046a81367a2755b34..c8f67aaaa777c6c0f928aa3cadf0c36f8e5791de 100644
--- a/ios/chrome/browser/history/history_backend_client_impl.cc
+++ b/ios/chrome/browser/history/history_backend_client_impl.cc
@@ -48,3 +48,7 @@ void HistoryBackendClientImpl::GetBookmarks(
bool HistoryBackendClientImpl::ShouldReportDatabaseError() {
return false;
}
+
+bool HistoryBackendClientImpl::IsWebSafe(const GURL& url) {
+ return url.SchemeIsHTTPOrHTTPS();
+}
« no previous file with comments | « ios/chrome/browser/history/history_backend_client_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698