Add a chrome://flag for the App Info dialog on Mac
The dialog is accessible from chrome://apps or chrome://extensions.
Replaces the "View in Webstore" option with a more powerful,
offline-enabled dialog (which has its own webstore link).
It's currently coupled to --enable-mac-views-app-list, but the views app
list on Mac is lower priority. We want to prep the App Info dialog for
QA.
Adds --{enable,disable}-app-info-dialog-mac, and an enable/disable
chrome://flag. Hide it on everything that isn't Mac, since the app info
dialog is on by default there, and can't be disabled.
BUG=485854
Review URL: https://codereview.chromium.org/1166823002
Cr-Commit-Position: refs/heads/master@{#332703}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 403550b5..5b41ff4a 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2405,6 +2405,16 @@
SINGLE_VALUE_TYPE(switches::kEnableWebRtcDtls12)
},
#endif
+#if defined(OS_MACOSX)
+ {
+ "app-info-dialog",
+ IDS_FLAGS_APP_INFO_DIALOG_NAME,
+ IDS_FLAGS_APP_INFO_DIALOG_DESCRIPTION,
+ kOsMac,
+ ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppInfoDialogMac,
+ switches::kDisableAppInfoDialogMac)
+ },
+#endif
// 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.