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

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

Issue 2731033002: [Media Router] Custom Controls 3 - add plumbing through MRUI and MRWebUIMessageHandler (Closed)
Patch Set: Address Mark's and Derek's comments 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
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"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 base::FEATURE_ENABLED_BY_DEFAULT}; 202 base::FEATURE_ENABLED_BY_DEFAULT};
203 203
204 #if !defined(OS_ANDROID) && !defined(OS_IOS) 204 #if !defined(OS_ANDROID) && !defined(OS_IOS)
205 // Enables media content bitstream remoting, an optimization that can activate 205 // Enables media content bitstream remoting, an optimization that can activate
206 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the 206 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the
207 // feature will not activate for encrypted content. 207 // feature will not activate for encrypted content.
208 const base::Feature kMediaRemoting{"MediaRemoting", 208 const base::Feature kMediaRemoting{"MediaRemoting",
209 base::FEATURE_DISABLED_BY_DEFAULT}; 209 base::FEATURE_DISABLED_BY_DEFAULT};
210 const base::Feature kMediaRemotingEncrypted{"MediaRemotingEncrypted", 210 const base::Feature kMediaRemotingEncrypted{"MediaRemotingEncrypted",
211 base::FEATURE_DISABLED_BY_DEFAULT}; 211 base::FEATURE_DISABLED_BY_DEFAULT};
212
213 // If enabled, replaces the <extensionview> controller in the route details view
214 // of the Media Router dialog with the controller bundled with the WebUI
215 // resources.
216 const base::Feature kMediaRouterUIRouteController{
217 "MediaRouterUIRouteController", base::FEATURE_DISABLED_BY_DEFAULT};
212 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 218 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
213 219
214 // Enables or disables modal permission prompts. 220 // Enables or disables modal permission prompts.
215 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", 221 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts",
216 base::FEATURE_DISABLED_BY_DEFAULT}; 222 base::FEATURE_DISABLED_BY_DEFAULT};
217 223
218 #if defined(OS_WIN) 224 #if defined(OS_WIN)
219 // Enables or disables the ModuleDatabase backend for the conflicts UI. 225 // Enables or disables the ModuleDatabase backend for the conflicts UI.
220 const base::Feature kModuleDatabase{"ModuleDatabase", 226 const base::Feature kModuleDatabase{"ModuleDatabase",
221 base::FEATURE_DISABLED_BY_DEFAULT}; 227 base::FEATURE_DISABLED_BY_DEFAULT};
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 return base::FeatureList::IsEnabled(features::kPrefService) || 351 return base::FeatureList::IsEnabled(features::kPrefService) ||
346 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 352 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
347 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 353 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
348 switches::kMusConfig) == switches::kMash; 354 switches::kMusConfig) == switches::kMash;
349 #else 355 #else
350 false; 356 false;
351 #endif 357 #endif
352 } 358 }
353 359
354 } // namespace features 360 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698