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

Side by Side Diff: chrome/common/chrome_features.cc

Issue 2450623002: [MD Bookmarks] Add skeleton for Material Design Bookmarks (Closed)
Patch Set: rebase Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/extensions/api/_api_features.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 the Print Scaling feature in print preview.
98 #if defined(ENABLE_PRINT_PREVIEW)
99 const base::Feature kPrintScaling{"PrintScaling",
100 base::FEATURE_DISABLED_BY_DEFAULT};
101 #endif
102
103 // Enables or disables push subscriptions keeping Chrome running in the
104 // background when closed.
105 const base::Feature kPushMessagingBackgroundMode{
106 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT};
107
108 // Enables or disables the Material Design version of chrome://history. 97 // Enables or disables the Material Design version of chrome://history.
109 const base::Feature kMaterialDesignHistory{ 98 const base::Feature kMaterialDesignHistory{"MaterialDesignHistory",
110 "MaterialDesignHistory", base::FEATURE_ENABLED_BY_DEFAULT}; 99 base::FEATURE_ENABLED_BY_DEFAULT};
111 100
112 // Enables or disables the Material Design version of chrome://settings. 101 // Enables or disables the Material Design version of chrome://settings.
113 // Also affects chrome://help. 102 // Also affects chrome://help.
114 const base::Feature kMaterialDesignSettings{ 103 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings",
115 "MaterialDesignSettings", base::FEATURE_DISABLED_BY_DEFAULT}; 104 base::FEATURE_DISABLED_BY_DEFAULT};
116 105
117 // Enables or disables modal permission prompts. 106 // Enables or disables modal permission prompts.
118 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", 107 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts",
119 base::FEATURE_DISABLED_BY_DEFAULT}; 108 base::FEATURE_DISABLED_BY_DEFAULT};
120 109
121 // Enables the use of native notification centers instead of using the Message 110 // Enables the use of native notification centers instead of using the Message
122 // Center for displaying the toasts. 111 // Center for displaying the toasts.
123 #if defined(OS_MACOSX) 112 #if defined(OS_MACOSX)
124 const base::Feature kNativeNotifications{"NativeNotifications", 113 const base::Feature kNativeNotifications{"NativeNotifications",
125 base::FEATURE_DISABLED_BY_DEFAULT}; 114 base::FEATURE_DISABLED_BY_DEFAULT};
126 #endif // defined(OS_MACOSX) 115 #endif // defined(OS_MACOSX)
127 116
117 // Enables YouTube Flash videos to be overridden.
118 const base::Feature kOverrideYouTubeFlashEmbed{
119 "OverrideYouTubeFlashEmbed", base::FEATURE_ENABLED_BY_DEFAULT};
120
128 #if defined(ENABLE_PLUGINS) 121 #if defined(ENABLE_PLUGINS)
129 // Prefer HTML content by hiding Flash from the list of plugins. 122 // Prefer HTML content by hiding Flash from the list of plugins.
130 // https://crbug.com/626728 123 // https://crbug.com/626728
131 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", 124 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins",
132 base::FEATURE_DISABLED_BY_DEFAULT}; 125 base::FEATURE_DISABLED_BY_DEFAULT};
133 #endif 126 #endif
134 127
128 // Enables the Print Scaling feature in print preview.
129 #if defined(ENABLE_PRINT_PREVIEW)
130 const base::Feature kPrintScaling{"PrintScaling",
131 base::FEATURE_DISABLED_BY_DEFAULT};
132 #endif
133
134 // Enables or disables push subscriptions keeping Chrome running in the
135 // background when closed.
136 const base::Feature kPushMessagingBackgroundMode{
137 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT};
138
135 #if defined(OS_CHROMEOS) 139 #if defined(OS_CHROMEOS)
136 // Runtime flag that indicates whether this leak detector should be enabled in 140 // Runtime flag that indicates whether this leak detector should be enabled in
137 // the current instance of Chrome. 141 // the current instance of Chrome.
138 const base::Feature kRuntimeMemoryLeakDetector{ 142 const base::Feature kRuntimeMemoryLeakDetector{
139 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; 143 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT};
140 #endif // defined(OS_CHROMEOS) 144 #endif // defined(OS_CHROMEOS)
141 145
142 #if defined(ENABLE_PLUGINS) 146 #if defined(ENABLE_PLUGINS)
143 // Disables Plugin Power Saver when Flash is in ALLOW mode. 147 // Disables Plugin Power Saver when Flash is in ALLOW mode.
144 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode", 148 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode",
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Enables or disables PIN quick unlock settings integration. 184 // Enables or disables PIN quick unlock settings integration.
181 const base::Feature kQuickUnlockPin{"QuickUnlockPin", 185 const base::Feature kQuickUnlockPin{"QuickUnlockPin",
182 base::FEATURE_DISABLED_BY_DEFAULT}; 186 base::FEATURE_DISABLED_BY_DEFAULT};
183 187
184 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. 188 // Enables or disables emoji, handwriting and voice input on opt-in IME menu.
185 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", 189 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput",
186 base::FEATURE_DISABLED_BY_DEFAULT}; 190 base::FEATURE_DISABLED_BY_DEFAULT};
187 #endif // defined(OS_CHROMEOS) 191 #endif // defined(OS_CHROMEOS)
188 192
189 } // namespace features 193 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/extensions/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698