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

Unified Diff: chrome/browser/about_flags.cc

Issue 2892893002: Initial implementation of new-style notification (Closed)
Patch Set: Fixed build failure Created 3 years, 7 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/browser/flag_descriptions.h » ('j') | ui/message_center/views/message_view_factory.cc » ('J')
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 4c903959166b8ce50ce21417701a0f86776bec50..8f2a09d672a372bdf1a66710c2fd4349e48efe3c 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -443,6 +443,17 @@ const FeatureEntry::Choice kAshShelfColorSchemeChoices[] = {
};
#endif // USE_ASH
+#if !defined(OS_ANDROID)
+const FeatureEntry::Choice kMessageCenterNewStyleNotificationChoices[] = {
+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
+ {flags_ui::kGenericExperimentChoiceEnabled,
+ switches::kMessageCenterNewStyleNotification,
+ switches::kMessageCenterNewStyleNotificationEnabled},
+ {flags_ui::kGenericExperimentChoiceDisabled,
+ switches::kMessageCenterNewStyleNotification,
+ switches::kMessageCenterNewStyleNotificationDisabled}};
+#endif // !OS_ANDROID
+
#if defined(OS_CHROMEOS)
const FeatureEntry::Choice kAshMaterialDesignInkDropAnimationSpeed[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
@@ -1846,6 +1857,10 @@ const FeatureEntry kFeatureEntries[] = {
kOsDesktop,
SINGLE_VALUE_TYPE(
switches::kEnableMessageCenterAlwaysScrollUpUponNotificationRemoval)},
+ {"enable-message-center-new-style-notification",
+ flag_descriptions::kMessageCenterNewStyleNotificationName,
+ flag_descriptions::kMessageCenterNewStyleNotificationDescription,
+ kOsDesktop, MULTI_VALUE_TYPE(kMessageCenterNewStyleNotificationChoices)},
fukino 2017/05/25 07:35:10 Can we use ENABLE_DISABLE_VALUE_TYPE to make relat
yoshiki 2017/05/29 03:52:38 I want to make it tri-state since we may re-disabl
fukino 2017/05/30 07:32:32 We have Enable/Disable/Default in chrome://flags f
yoshiki 2017/05/31 03:53:01 Ah, I confused with SINGLE_VALUE_TYPE. Ok, let me
#endif // !OS_ANDROID
{"enable-md-policy-page",
flag_descriptions::kEnableMaterialDesignPolicyPageName,
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | ui/message_center/views/message_view_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698