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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2513463002: Media: Add IsStreaming UMA. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | 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 32d5a896e44b37814eeb5ad2fc33cdfc523e9075..948fa0affb0a4c64f83018e13455b526f2873223 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -1602,12 +1602,12 @@ void WebMediaPlayerImpl::StartPipeline() {
// TODO(sandersd): FileSystem objects may also be non-static, but due to our
// caching layer such situations are broken already. http://crbug.com/593159
bool is_static = !chunk_demuxer_;
+ bool is_streaming = data_source_ && data_source_->IsStreaming();
+ UMA_HISTOGRAM_BOOLEAN("Media.IsStreaming", is_streaming);
// ... and we're ready to go!
- seeking_ = true;
-
// TODO(sandersd): On Android, defer Start() if the tab is not visible.
- bool is_streaming = data_source_ && data_source_->IsStreaming();
+ seeking_ = true;
pipeline_controller_.Start(demuxer_.get(), this, is_streaming, is_static);
}
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698