Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/chrome_features.h" | 5 #include "chrome/common/chrome_features.h" |
| 6 | 6 |
| 7 namespace features { | 7 namespace features { |
| 8 | 8 |
| 9 // All features in alphabetical order. | 9 // All features in alphabetical order. |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) | 79 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 80 // Enables showing the "This computer will no longer receive Google Chrome | 80 // Enables showing the "This computer will no longer receive Google Chrome |
| 81 // updates" infobar instead of the "will soon stop receiving" infobar on | 81 // updates" infobar instead of the "will soon stop receiving" infobar on |
| 82 // deprecated systems. | 82 // deprecated systems. |
| 83 const base::Feature kLinuxObsoleteSystemIsEndOfTheLine{ | 83 const base::Feature kLinuxObsoleteSystemIsEndOfTheLine{ |
| 84 "LinuxObsoleteSystemIsEndOfTheLine", base::FEATURE_DISABLED_BY_DEFAULT}; | 84 "LinuxObsoleteSystemIsEndOfTheLine", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 // Enables or disables the Material Design version of chrome://bookmarks. | |
| 88 const base::Feature kMaterialDesignBookmarks{"MaterialDesignBookmarks", | |
| 89 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 90 | |
| 87 #if defined(ENABLE_EXTENSIONS) | 91 #if defined(ENABLE_EXTENSIONS) |
| 88 // Enabled or disabled the Material Design version of chrome://extensions. | 92 // Enabled or disabled the Material Design version of chrome://extensions. |
| 89 const base::Feature kMaterialDesignExtensions{ | 93 const base::Feature kMaterialDesignExtensions{ |
| 90 "MaterialDesignExtensions", base::FEATURE_DISABLED_BY_DEFAULT}; | 94 "MaterialDesignExtensions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 91 #endif | 95 #endif |
| 92 | 96 |
| 93 // Enables YouTube Flash videos to be overridden. | |
| 94 const base::Feature kOverrideYouTubeFlashEmbed{ | |
| 95 "OverrideYouTubeFlashEmbed", base::FEATURE_ENABLED_BY_DEFAULT}; | |
| 96 | |
| 97 // Enables or disables push subscriptions keeping Chrome running in the | |
| 98 // background when closed. | |
| 99 const base::Feature kPushMessagingBackgroundMode{ | |
| 100 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 101 | |
| 102 // Enables or disables the Material Design version of chrome://history. | 97 // Enables or disables the Material Design version of chrome://history. |
| 103 const base::Feature kMaterialDesignHistory{ | 98 const base::Feature kMaterialDesignHistory{ |
| 104 "MaterialDesignHistory", base::FEATURE_ENABLED_BY_DEFAULT}; | 99 "MaterialDesignHistory", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 105 | 100 |
| 106 // Enables or disables the Material Design version of chrome://settings. | 101 // Enables or disables the Material Design version of chrome://settings. |
| 107 // Also affects chrome://help. | 102 // Also affects chrome://help. |
| 108 const base::Feature kMaterialDesignSettings{ | 103 const base::Feature kMaterialDesignSettings{ |
| 109 "MaterialDesignSettings", base::FEATURE_DISABLED_BY_DEFAULT}; | 104 "MaterialDesignSettings", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 110 | 105 |
| 106 // Enables YouTube Flash videos to be overridden. | |
| 107 const base::Feature kOverrideYouTubeFlashEmbed{ | |
| 108 "OverrideYouTubeFlashEmbed", base::FEATURE_ENABLED_BY_DEFAULT}; | |
| 109 | |
| 110 // Enables or disables push subscriptions keeping Chrome running in the | |
| 111 // background when closed. | |
| 112 const base::Feature kPushMessagingBackgroundMode{ | |
| 113 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT}; | |
|
Dan Beam
2016/10/25 18:05:51
Y U MOVE?
calamity
2016/10/28 05:58:22
Match order in header. MD WebUIs should stick toge
| |
| 114 | |
| 111 // Enables the use of native notification centers instead of using the Message | 115 // Enables the use of native notification centers instead of using the Message |
| 112 // Center for displaying the toasts. | 116 // Center for displaying the toasts. |
| 113 #if defined(OS_MACOSX) | 117 #if defined(OS_MACOSX) |
| 114 const base::Feature kNativeNotifications{"NativeNotifications", | 118 const base::Feature kNativeNotifications{"NativeNotifications", |
| 115 base::FEATURE_DISABLED_BY_DEFAULT}; | 119 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 116 #endif // defined(OS_MACOSX) | 120 #endif // defined(OS_MACOSX) |
| 117 | 121 |
| 118 #if defined(ENABLE_PLUGINS) | 122 #if defined(ENABLE_PLUGINS) |
| 119 // Prefer HTML content by hiding Flash from the list of plugins. | 123 // Prefer HTML content by hiding Flash from the list of plugins. |
| 120 // https://crbug.com/626728 | 124 // https://crbug.com/626728 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 // Enables or disables PIN quick unlock settings integration. | 163 // Enables or disables PIN quick unlock settings integration. |
| 160 const base::Feature kQuickUnlockPin{"QuickUnlockPin", | 164 const base::Feature kQuickUnlockPin{"QuickUnlockPin", |
| 161 base::FEATURE_DISABLED_BY_DEFAULT}; | 165 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 162 | 166 |
| 163 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. | 167 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. |
| 164 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", | 168 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", |
| 165 base::FEATURE_DISABLED_BY_DEFAULT}; | 169 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 166 #endif // defined(OS_CHROMEOS) | 170 #endif // defined(OS_CHROMEOS) |
| 167 | 171 |
| 168 } // namespace features | 172 } // namespace features |
| OLD | NEW |