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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 1670753003: multibuffer field trial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatted Created 4 years, 10 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
« media/base/media_switches.h ('K') | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index ae04d4b8d4b884d2dbd9a5fe9b5c752b01402430..4ae617d9e2aa86c553493eeb2bb0670013d3e22c 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -291,9 +291,11 @@ void WebMediaPlayerImpl::DoLoad(LoadType load_type,
return;
}
+ // TODO(hubbe): This experiment is temporary and should be removed once
+ // we have enough data to support the primacy of the new media cache.
+ // See http://crbug.com/514719 for details.
// Otherwise it's a regular request which requires resolving the URL first.
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kUseNewMediaCache)) {
+ if (base::FeatureList::IsEnabled(kUseNewMediaCache)) {
// Remove this when MultiBufferDataSource becomes default.
LOG(WARNING) << "Using MultibufferDataSource";
data_source_.reset(new MultibufferDataSource(
« media/base/media_switches.h ('K') | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698