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

Unified Diff: components/dom_distiller/core/url_utils_android.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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/url_utils_android.cc
diff --git a/components/dom_distiller/core/url_utils_android.cc b/components/dom_distiller/core/url_utils_android.cc
index 2f12d344a62838348b7b964eea551a2cc9070e29..e7cb61f5da433c1454a9f3416bfab52d8082b927 100644
--- a/components/dom_distiller/core/url_utils_android.cc
+++ b/components/dom_distiller/core/url_utils_android.cc
@@ -34,6 +34,15 @@ jstring GetDistillerViewUrlFromUrl(JNIEnv* env,
return base::android::ConvertUTF8ToJavaString(env, view_url.spec()).Release();
}
+jboolean IsUrlReportable(JNIEnv* env,
+ jclass clazz,
+ jstring j_scheme,
+ jstring j_url) {
+ std::string scheme(base::android::ConvertJavaStringToUTF8(env, j_scheme));
+ GURL url(base::android::ConvertJavaStringToUTF8(env, j_url));
+ return dom_distiller::url_utils::IsUrlReportable(scheme, url);
+}
+
bool RegisterUrlUtils(JNIEnv* env) { return RegisterNativesImpl(env); }
} // namespace android
« no previous file with comments | « components/dom_distiller/core/url_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698