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

Unified Diff: chrome/browser/about_flags.cc

Issue 1551743002: Add chrome://flags for update menu item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review, fix histograms test Created 5 years 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/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index e8a93a001204bd271d77aa093a1b8008b21d834a..e496f1a6a24b8449028e94f5c8fddf0133c07cbd 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -488,6 +488,16 @@ const FeatureEntry::Choice kNtpSwitchToExistingTabChoices[] = {
};
#endif // defined(OS_ANDROID)
+#if defined(OS_ANDROID)
+const FeatureEntry::Choice kUpdateMenuItemSummaryChoices[] = {
+ {IDS_FLAGS_UPDATE_MENU_ITEM_NO_SUMMARY, "", ""},
+ {IDS_FLAGS_UPDATE_MENU_ITEM_DEFAULT_SUMMARY,
+ switches::kForceShowUpdateMenuItemSummary, ""},
+ {IDS_FLAGS_UPDATE_MENU_ITEM_CUSTOM_SUMMARY,
+ switches::kForceShowUpdateMenuItemCustomSummary, "Custom summary"},
+};
+#endif // defined(OS_ANDROID)
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the entry is the internal name. If you'd like to gather
@@ -2089,6 +2099,30 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_ENABLE_UNIFIED_MEDIA_PIPELINE_DESCRIPTION, kOsAndroid,
SINGLE_VALUE_TYPE(switches::kEnableUnifiedMediaPipeline)},
#endif // OS_ANDROID
+#if defined(OS_ANDROID)
+ {"force-show-update-menu-item",
+ IDS_FLAGS_UPDATE_MENU_ITEM_NAME,
+ IDS_FLAGS_UPDATE_MENU_ITEM_DESCRIPTION,
+ kOsAndroid,
+ SINGLE_VALUE_TYPE(switches::kForceShowUpdateMenuItem)},
+ {"update-menu-item-summary",
+ IDS_FLAGS_UPDATE_MENU_ITEM_SUMMARY_NAME,
+ IDS_FLAGS_UPDATE_MENU_ITEM_SUMMARY_DESCRIPTION,
+ kOsAndroid,
+ MULTI_VALUE_TYPE(kUpdateMenuItemSummaryChoices)},
+ {"force-show-update-menu-badge",
+ IDS_FLAGS_UPDATE_MENU_BADGE_NAME,
+ IDS_FLAGS_UPDATE_MENU_BADGE_DESCRIPTION,
+ kOsAndroid,
+ SINGLE_VALUE_TYPE(switches::kForceShowUpdateMenuBadge)},
+ {"set-market-url-for-testing",
+ IDS_FLAGS_SET_MARKET_URL_FOR_TESTING_NAME,
+ IDS_FLAGS_SET_MARKET_URL_FOR_TESTING_DESCRIPTION,
+ kOsAndroid,
+ SINGLE_VALUE_TYPE_AND_VALUE(
+ switches::kMarketUrlForTesting,
+ "https://play.google.com/store/apps/details?id=com.android.chrome")},
+#endif // OS_ANDROID
// NOTE: Adding new command-line switches requires adding corresponding
// entries to enum "LoginCustomFlags" in histograms.xml. See note in
// histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698