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

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

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
Index: components/dom_distiller/core/url_utils.h
diff --git a/components/dom_distiller/core/url_utils.h b/components/dom_distiller/core/url_utils.h
index a57fcd2948552ac768f93436739580df493031f1..8202850db8de00678c6372abfacea1db6820ccab 100644
--- a/components/dom_distiller/core/url_utils.h
+++ b/components/dom_distiller/core/url_utils.h
@@ -25,9 +25,12 @@ const GURL GetDistillerViewUrlFromUrl(const std::string& scheme,
std::string GetValueForKeyInUrlPathQuery(const std::string& path,
const std::string& key);
-// Return whether it should be possible to distill the given |url|.
+// Returns whether it should be possible to distill the given |url|.
bool IsUrlDistillable(const GURL& url);
+// Returns whether it should be possible to report the given |url|.
+bool IsUrlReportable(const std::string& scheme, const GURL& url);
+
} // namespace url_utils
} // namespace dom_distiller

Powered by Google App Engine
This is Rietveld 408576698