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

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 54c920ae5f92f9ba34c81096189b0bc616f70775..0df43d1f87777a5738cca80161891e195d0743d5 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
@@ -347,8 +347,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.isReportableUrl(
+ CHROME_DISTILLER_SCHEME, activeTab.getUrl()));
nyquist 2014/03/31 23:08:25 Use |url| here.
Sungmann Cho 2014/04/01 07:51:39 Done.
distillPageItem.setVisible(true);
} else {
distillPageItem.setVisible(false);

Powered by Google App Engine
This is Rietveld 408576698