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

Unified Diff: components/dom_distiller/core/url_utils.cc

Issue 208263010: Fix a problem that FeedbackReportingView is stacked infinitely whenever navigating to chrome-distil… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 | « components/dom_distiller/core/url_utils.h ('k') | components/dom_distiller/core/url_utils_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/url_utils.cc
diff --git a/components/dom_distiller/core/url_utils.cc b/components/dom_distiller/core/url_utils.cc
index 814a4e7c81c8ff94816a48b493f88a804fb5e395..e1d9b3d7606f0f346d8ad2c2e17179ccadbaf859 100644
--- a/components/dom_distiller/core/url_utils.cc
+++ b/components/dom_distiller/core/url_utils.cc
@@ -47,6 +47,10 @@ bool IsUrlDistillable(const GURL& url) {
return url.is_valid() && url.SchemeIsHTTPOrHTTPS();
}
+bool IsUrlReportable(const std::string& scheme, const GURL& url) {
+ return url.is_valid() && url.scheme() == scheme;
+}
+
} // namespace url_utils
} // namespace dom_distiller
« no previous file with comments | « components/dom_distiller/core/url_utils.h ('k') | components/dom_distiller/core/url_utils_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698