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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: content/renderer/media/android/webmediaplayer_android.cc
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
index 2cca558ec100237d1511ad1e2020d9b74b069182..bf5add330c6a6d261843508eb01baff44f78f1ed 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -541,7 +541,7 @@ bool WebMediaPlayerAndroid::seeking() const {
double WebMediaPlayerAndroid::duration() const {
DCHECK(main_thread_checker_.CalledOnValidThread());
- if (duration_ == media::kInfiniteDuration())
+ if (duration_ == media::kInfiniteDuration)
return std::numeric_limits<double>::infinity();
return duration_.InSecondsF();
@@ -804,7 +804,7 @@ void WebMediaPlayerAndroid::OnMediaMetadataChanged(
// For HLS streams, the reported duration may be zero for infinite streams.
// See http://crbug.com/501213.
if (duration.is_zero() && IsHLSStream())
- duration = media::kInfiniteDuration();
+ duration = media::kInfiniteDuration;
// Update duration, if necessary, prior to ready state updates that may
// cause duration() query.

Powered by Google App Engine
This is Rietveld 408576698