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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java

Issue 2951133003: Clean up tinted ImageView subclasses (Closed)
Patch Set: Comments Created 3 years, 6 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/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
index e13619ddf5bfefc281f95d9314674524c3623bb4..d6f8879c89fc2c21029079a0648f9b8bc123f8bd 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
@@ -82,18 +82,14 @@ public class CustomTabAppMenuPropertiesDelegate extends AppMenuPropertiesDelegat
MenuItem downloadItem = menu.findItem(R.id.offline_page_id);
boolean addToHomeScreenVisible = true;
-
- // Hide request desktop site on all chrome:// pages except for the NTP. Check request
- // desktop site if it's activated on this page.
- MenuItem requestItem = menu.findItem(R.id.request_desktop_site_id);
- updateRequestDesktopSiteMenuItem(requestItem, currentTab);
+ updateRequestDesktopSiteMenuItem(menu, currentTab);
if (mIsMediaViewer) {
// Most of the menu items don't make sense when viewing media.
iconRow.setVisible(false);
openInChromeItem.setVisible(false);
menu.findItem(R.id.find_in_page_id).setVisible(false);
- menu.findItem(R.id.request_desktop_site_id).setVisible(false);
+ menu.findItem(R.id.request_desktop_site_row_menu_id).setVisible(false);
addToHomeScreenVisible = false;
} else if (mIsPaymentRequestUI) {
// Only the icon row and 'find in page' are shown for openning payment request UI

Powered by Google App Engine
This is Rietveld 408576698