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

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

Issue 2621203004: Correctly hide the content suggestions menu item by default. (Closed)
Patch Set: format Created 3 years, 11 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 | « chrome/android/java/res/menu/main_menu.xml ('k') | no next file » | 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 6f574fceb691a2ea9f372b78f1a7ae870fed37b1..1c1b9cbf87eff2a5e759931836aed9b0a0551fed 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
@@ -192,11 +192,10 @@ public class AppMenuPropertiesDelegate {
// Only display the standalone content suggestions UI if the corresponding feature
// is enabled.
- if (ChromeFeatureList.isEnabled(ChromeFeatureList.NTP_SUGGESTIONS_STANDALONE_UI)) {
- MenuItem item = menu.findItem(R.id.content_suggestions_standalone_ui);
- item.setTitle("🔰🆕👌");
- item.setVisible(true);
- }
+ MenuItem item = menu.findItem(R.id.content_suggestions_standalone_ui);
+ item.setTitle("🔰🆕👌");
+ item.setVisible(
+ ChromeFeatureList.isEnabled(ChromeFeatureList.NTP_SUGGESTIONS_STANDALONE_UI));
}
if (isOverviewMenu) {
« no previous file with comments | « chrome/android/java/res/menu/main_menu.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698