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

Unified Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java

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: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
index 8b617261b41be10eaa461a439ae9a7ba90203e81..7c14ab5b079773535fc13a9078f908c55297abb9 100644
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
@@ -367,8 +367,8 @@ public class ChromeShellActivity extends Activity implements AppMenuPropertiesDe
MenuItem distillPageItem = menu.findItem(R.id.distill_page);
if (CommandLine.getInstance().hasSwitch(ChromeShellSwitches.ENABLE_DOM_DISTILLER)) {
String url = activeTab != null ? activeTab.getUrl() : null;
- distillPageItem.setEnabled(!TextUtils.isEmpty(url) &&
- !url.startsWith(CHROME_DISTILLER_SCHEME));
+ distillPageItem.setEnabled(!DomDistillerUrlUtils.isUrlReportable(
+ CHROME_DISTILLER_SCHEME, url));
distillPageItem.setVisible(true);
} else {
distillPageItem.setVisible(false);

Powered by Google App Engine
This is Rietveld 408576698