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

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

Issue 2798243005: [Mac] Enable Applescript's "Execute Javascript" Command by Default (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "extensions/features/features.h" 9 #include "extensions/features/features.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
11 11
12 namespace features { 12 namespace features {
13 13
14 // All features in alphabetical order. 14 // All features in alphabetical order.
15 15
16 #if defined(OS_ANDROID) 16 #if defined(OS_ANDROID)
17 const base::Feature kAllowAutoplayUnmutedInWebappManifestScope{ 17 const base::Feature kAllowAutoplayUnmutedInWebappManifestScope{
18 "AllowAutoplayUnmutedInWebappManifestScope", 18 "AllowAutoplayUnmutedInWebappManifestScope",
19 base::FEATURE_ENABLED_BY_DEFAULT}; 19 base::FEATURE_ENABLED_BY_DEFAULT};
20 #endif // defined(OS_ANDROID) 20 #endif // defined(OS_ANDROID)
21 21
22 #if defined(OS_MACOSX) 22 #if defined(OS_MACOSX)
23 // Enables Javascript execution via AppleScript. 23 // Enables Javascript execution via AppleScript.
24 const base::Feature kAppleScriptExecuteJavaScript{ 24 const base::Feature kAppleScriptExecuteJavaScript{
25 "AppleScriptExecuteJavaScript", base::FEATURE_DISABLED_BY_DEFAULT}; 25 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT};
26 26
27 // Use the Toolkit-Views Task Manager window. 27 // Use the Toolkit-Views Task Manager window.
28 const base::Feature kViewsTaskManager{"ViewsTaskManager", 28 const base::Feature kViewsTaskManager{"ViewsTaskManager",
29 base::FEATURE_DISABLED_BY_DEFAULT}; 29 base::FEATURE_DISABLED_BY_DEFAULT};
30 #endif // defined(OS_MACOSX) 30 #endif // defined(OS_MACOSX)
31 31
32 #if defined(OS_CHROMEOS) 32 #if defined(OS_CHROMEOS)
33 // Whether to handle low memory kill of ARC apps by Chrome. 33 // Whether to handle low memory kill of ARC apps by Chrome.
34 const base::Feature kArcMemoryManagement{ 34 const base::Feature kArcMemoryManagement{
35 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT}; 35 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT};
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 return base::FeatureList::IsEnabled(features::kPrefService) || 326 return base::FeatureList::IsEnabled(features::kPrefService) ||
327 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 327 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
328 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 328 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
329 switches::kMusConfig) == switches::kMash; 329 switches::kMusConfig) == switches::kMash;
330 #else 330 #else
331 false; 331 false;
332 #endif 332 #endif
333 } 333 }
334 334
335 } // namespace features 335 } // namespace features
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698