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

Unified Diff: media/base/media.cc

Issue 1997783002: Revert "Flip unified media pipeline to default-on w/ disabled holdback." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media.cc
diff --git a/media/base/media.cc b/media/base/media.cc
index 9fd89ccc7f02773115a30e7f5f9d93da555c1919..4011a389c3050efcaf5decaa721dbf074f6d5b81 100644
--- a/media/base/media.cc
+++ b/media/base/media.cc
@@ -96,17 +96,17 @@ bool IsUnifiedMediaPipelineEnabled() {
// UMA reports the correct group.
const std::string group_name =
base::FieldTrialList::FindFullName("UnifiedMediaPipelineTrial");
- const bool disabled_via_cli =
+ const bool enabled_via_cli =
base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableUnifiedMediaPipeline);
+ switches::kEnableUnifiedMediaPipeline);
// TODO(watk, dalecurtis): AVDA has bugs on API level 16 and 17 so it's
// disabled for now. http://crbug.com/597467
const bool api_level_supported =
base::android::BuildInfo::GetInstance()->sdk_int() >= 18;
- return !disabled_via_cli && api_level_supported &&
- !base::StartsWith(group_name, "Disabled",
- base::CompareCase::SENSITIVE);
+ return enabled_via_cli || (api_level_supported &&
+ base::StartsWith(group_name, "Enabled",
+ base::CompareCase::SENSITIVE));
}
bool ArePlatformDecodersAvailable() {
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698