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

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

Issue 2477633003: [Mac] Add a feature flag to disable Javascript execution in Applescript (Closed)
Patch Set: nit 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') | no next file » | 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
11 #if defined(OS_MACOSX)
12 // Enables Javascript execution via AppleScript.
13 const base::Feature kAppleScriptExecuteJavaScript{
14 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT};
15 #endif // defined(OS_MACOSX)
16
11 #if defined(OS_CHROMEOS) 17 #if defined(OS_CHROMEOS)
12 // Whether to handle low memory kill of ARC apps by Chrome. 18 // Whether to handle low memory kill of ARC apps by Chrome.
13 const base::Feature kArcMemoryManagement{ 19 const base::Feature kArcMemoryManagement{
14 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT}; 20 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT};
15 #endif // defined(OS_CHROMEOS) 21 #endif // defined(OS_CHROMEOS)
16 22
17 #if defined(OS_WIN) || defined(OS_MACOSX) 23 #if defined(OS_WIN) || defined(OS_MACOSX)
18 // Enables automatic tab discarding, when the system is in low memory state. 24 // Enables automatic tab discarding, when the system is in low memory state.
19 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding", 25 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding",
20 base::FEATURE_ENABLED_BY_DEFAULT}; 26 base::FEATURE_ENABLED_BY_DEFAULT};
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Enables or disables PIN quick unlock settings integration. 197 // Enables or disables PIN quick unlock settings integration.
192 const base::Feature kQuickUnlockPin{"QuickUnlockPin", 198 const base::Feature kQuickUnlockPin{"QuickUnlockPin",
193 base::FEATURE_DISABLED_BY_DEFAULT}; 199 base::FEATURE_DISABLED_BY_DEFAULT};
194 200
195 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. 201 // Enables or disables emoji, handwriting and voice input on opt-in IME menu.
196 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", 202 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput",
197 base::FEATURE_DISABLED_BY_DEFAULT}; 203 base::FEATURE_DISABLED_BY_DEFAULT};
198 #endif // defined(OS_CHROMEOS) 204 #endif // defined(OS_CHROMEOS)
199 205
200 } // namespace features 206 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698