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 "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" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 198 base::FEATURE_ENABLED_BY_DEFAULT}; | 198 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 199 | 199 |
| 200 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 200 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 201 // Enables media content bitstream remoting, an optimization that can activate | 201 // Enables media content bitstream remoting, an optimization that can activate |
| 202 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the | 202 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the |
| 203 // feature will not activate for encrypted content. | 203 // feature will not activate for encrypted content. |
| 204 const base::Feature kMediaRemoting{"MediaRemoting", | 204 const base::Feature kMediaRemoting{"MediaRemoting", |
| 205 base::FEATURE_DISABLED_BY_DEFAULT}; | 205 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 206 const base::Feature kMediaRemotingEncrypted{"MediaRemotingEncrypted", | 206 const base::Feature kMediaRemotingEncrypted{"MediaRemotingEncrypted", |
| 207 base::FEATURE_DISABLED_BY_DEFAULT}; | 207 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 208 | |
| 209 // Replaces the current route details view in the Media Router dialog provided | |
|
imcheng
2017/04/22 00:22:51
I would probably phrase it as:
If enabled, replac
takumif
2017/04/24 20:59:23
Done.
| |
| 210 // by the Media Router component extension with one provided by Chromium that | |
| 211 // does not use <extensionview>. | |
| 212 const base::Feature kMediaRouterNewRouteController{ | |
| 213 // TODO: Do FEATURE_DISABLED_BY_DEFAULT instead | |
|
imcheng
2017/04/22 00:22:51
Resolve TODO?
takumif
2017/04/24 20:59:23
Done.
| |
| 214 "MediaRouterNewRouteController", base::FEATURE_ENABLED_BY_DEFAULT}; | |
| 208 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 215 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
| 209 | 216 |
| 210 // Enables or disables modal permission prompts. | 217 // Enables or disables modal permission prompts. |
| 211 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", | 218 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", |
| 212 base::FEATURE_DISABLED_BY_DEFAULT}; | 219 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 213 | 220 |
| 214 #if defined(OS_WIN) | 221 #if defined(OS_WIN) |
| 215 // Enables or disables the ModuleDatabase backend for the conflicts UI. | 222 // Enables or disables the ModuleDatabase backend for the conflicts UI. |
| 216 const base::Feature kModuleDatabase{"ModuleDatabase", | 223 const base::Feature kModuleDatabase{"ModuleDatabase", |
| 217 base::FEATURE_DISABLED_BY_DEFAULT}; | 224 base::FEATURE_DISABLED_BY_DEFAULT}; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 336 return base::FeatureList::IsEnabled(features::kPrefService) || | 343 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 337 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 344 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 338 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 345 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 339 switches::kMusConfig) == switches::kMash; | 346 switches::kMusConfig) == switches::kMash; |
| 340 #else | 347 #else |
| 341 false; | 348 false; |
| 342 #endif | 349 #endif |
| 343 } | 350 } |
| 344 | 351 |
| 345 } // namespace features | 352 } // namespace features |
| OLD | NEW |