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

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

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge 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/common_message_generator.h » ('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 #include "extensions/features/features.h"
8
7 namespace features { 9 namespace features {
8 10
9 // All features in alphabetical order. 11 // All features in alphabetical order.
10 12
11 #if defined(OS_MACOSX) 13 #if defined(OS_MACOSX)
12 // Enables Javascript execution via AppleScript. 14 // Enables Javascript execution via AppleScript.
13 const base::Feature kAppleScriptExecuteJavaScript{ 15 const base::Feature kAppleScriptExecuteJavaScript{
14 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT}; 16 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT};
15 #endif // defined(OS_MACOSX) 17 #endif // defined(OS_MACOSX)
16 18
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // updates" infobar instead of the "will soon stop receiving" infobar on 102 // updates" infobar instead of the "will soon stop receiving" infobar on
101 // deprecated systems. 103 // deprecated systems.
102 const base::Feature kLinuxObsoleteSystemIsEndOfTheLine{ 104 const base::Feature kLinuxObsoleteSystemIsEndOfTheLine{
103 "LinuxObsoleteSystemIsEndOfTheLine", base::FEATURE_DISABLED_BY_DEFAULT}; 105 "LinuxObsoleteSystemIsEndOfTheLine", base::FEATURE_DISABLED_BY_DEFAULT};
104 #endif 106 #endif
105 107
106 // Enables or disables the Material Design version of chrome://bookmarks. 108 // Enables or disables the Material Design version of chrome://bookmarks.
107 const base::Feature kMaterialDesignBookmarks{"MaterialDesignBookmarks", 109 const base::Feature kMaterialDesignBookmarks{"MaterialDesignBookmarks",
108 base::FEATURE_DISABLED_BY_DEFAULT}; 110 base::FEATURE_DISABLED_BY_DEFAULT};
109 111
110 #if defined(ENABLE_EXTENSIONS) 112 #if BUILDFLAG(ENABLE_EXTENSIONS)
111 // Enabled or disabled the Material Design version of chrome://extensions. 113 // Enabled or disabled the Material Design version of chrome://extensions.
112 const base::Feature kMaterialDesignExtensions{ 114 const base::Feature kMaterialDesignExtensions{
113 "MaterialDesignExtensions", base::FEATURE_DISABLED_BY_DEFAULT}; 115 "MaterialDesignExtensions", base::FEATURE_DISABLED_BY_DEFAULT};
114 #endif 116 #endif
115 117
116 // Enables or disables the Material Design version of chrome://history. 118 // Enables or disables the Material Design version of chrome://history.
117 const base::Feature kMaterialDesignHistory{"MaterialDesignHistory", 119 const base::Feature kMaterialDesignHistory{"MaterialDesignHistory",
118 base::FEATURE_ENABLED_BY_DEFAULT}; 120 base::FEATURE_ENABLED_BY_DEFAULT};
119 121
120 // Enables or disables the Material Design version of chrome://settings. 122 // Enables or disables the Material Design version of chrome://settings.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Enables or disables PIN quick unlock settings integration. 205 // Enables or disables PIN quick unlock settings integration.
204 const base::Feature kQuickUnlockPin{"QuickUnlockPin", 206 const base::Feature kQuickUnlockPin{"QuickUnlockPin",
205 base::FEATURE_DISABLED_BY_DEFAULT}; 207 base::FEATURE_DISABLED_BY_DEFAULT};
206 208
207 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. 209 // Enables or disables emoji, handwriting and voice input on opt-in IME menu.
208 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", 210 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput",
209 base::FEATURE_DISABLED_BY_DEFAULT}; 211 base::FEATURE_DISABLED_BY_DEFAULT};
210 #endif // defined(OS_CHROMEOS) 212 #endif // defined(OS_CHROMEOS)
211 213
212 } // namespace features 214 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/common_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698