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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java

Issue 2372313002: [Download Home] More effectively disable Download Home (Closed)
Patch Set: Rebasing Created 4 years, 3 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
index 1382e512a5c80bbb43a939b66257193e007264fc..655fa82e574c0486b2ea8c547545e395b74b9759 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java
@@ -12,7 +12,6 @@ import android.view.MenuItem;
import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.ChromeActivity;
-import org.chromium.chrome.browser.ChromeFeatureList;
import org.chromium.chrome.browser.ShortcutHelper;
import org.chromium.chrome.browser.UrlConstants;
import org.chromium.chrome.browser.bookmarks.BookmarkBridge;
@@ -110,7 +109,7 @@ public class AppMenuPropertiesDelegate {
MenuItem offlineMenuItem = menu.findItem(R.id.offline_page_id);
if (offlineMenuItem != null) {
- if (ChromeFeatureList.isEnabled("DownloadsUi")) {
+ if (DownloadUtils.isDownloadHomeEnabled()) {
offlineMenuItem.setEnabled(
DownloadUtils.isAllowedToDownloadPage(currentTab));
@@ -128,7 +127,7 @@ public class AppMenuPropertiesDelegate {
}
menu.findItem(R.id.downloads_menu_id)
- .setVisible(ChromeFeatureList.isEnabled("DownloadsUi"));
+ .setVisible(DownloadUtils.isDownloadHomeEnabled());
menu.findItem(R.id.update_menu_id).setVisible(
UpdateMenuItemHelper.getInstance().shouldShowMenuItem(mActivity));
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698