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 #include "extensions/features/features.h" | 7 #include "extensions/features/features.h" |
| 8 #include "ppapi/features/features.h" | 8 #include "ppapi/features/features.h" |
| 9 | 9 |
| 10 namespace features { | 10 namespace features { |
| 11 | 11 |
| 12 // All features in alphabetical order. | 12 // All features in alphabetical order. |
| 13 | 13 |
| 14 #if defined(OS_ANDROID) | 14 #if defined(OS_ANDROID) |
| 15 const base::Feature kAllowAutoplayUnmutedInWebappManifestScope{ | 15 const base::Feature kAllowAutoplayUnmutedInWebappManifestScope{ |
| 16 "AllowAutoplayUnmutedInWebappManifestScope", | 16 "AllowAutoplayUnmutedInWebappManifestScope", |
| 17 base::FEATURE_ENABLED_BY_DEFAULT}; | 17 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 18 #endif // defined(OS_ANDROID) | 18 #endif // defined(OS_ANDROID) |
| 19 | 19 |
| 20 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
| 21 // Enables Javascript execution via AppleScript. | 21 // Enables Javascript execution via AppleScript. |
| 22 const base::Feature kAppleScriptExecuteJavaScript{ | 22 const base::Feature kAppleScriptExecuteJavaScript{ |
| 23 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT}; | 23 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 24 const base::Feature kViewsTaskManager{"ViewsTaskManager", | |
|
tapted
2017/03/13 02:03:06
nit: add a comment. (see chrome_features.h:18) E.g
| |
| 25 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 24 #endif // defined(OS_MACOSX) | 26 #endif // defined(OS_MACOSX) |
| 25 | 27 |
| 26 #if defined(OS_CHROMEOS) | 28 #if defined(OS_CHROMEOS) |
| 27 // Whether to handle low memory kill of ARC apps by Chrome. | 29 // Whether to handle low memory kill of ARC apps by Chrome. |
| 28 const base::Feature kArcMemoryManagement{ | 30 const base::Feature kArcMemoryManagement{ |
| 29 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT}; | 31 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 30 #endif // defined(OS_CHROMEOS) | 32 #endif // defined(OS_CHROMEOS) |
| 31 | 33 |
| 32 // If enabled, the list of content suggestions on the New Tab page will contain | 34 // If enabled, the list of content suggestions on the New Tab page will contain |
| 33 // assets (e.g. books, pictures, audio) that the user downloaded for later use. | 35 // assets (e.g. books, pictures, audio) that the user downloaded for later use. |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 290 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. | 292 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. |
| 291 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", | 293 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", |
| 292 base::FEATURE_ENABLED_BY_DEFAULT}; | 294 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 293 | 295 |
| 294 // Enables or disables flash component updates on Chrome OS. | 296 // Enables or disables flash component updates on Chrome OS. |
| 295 const base::Feature kCrosCompUpdates{"CrosCompUpdates", | 297 const base::Feature kCrosCompUpdates{"CrosCompUpdates", |
| 296 base::FEATURE_ENABLED_BY_DEFAULT}; | 298 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 297 #endif // defined(OS_CHROMEOS) | 299 #endif // defined(OS_CHROMEOS) |
| 298 | 300 |
| 299 } // namespace features | 301 } // namespace features |
| OLD | NEW |