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

Unified Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp

Issue 2812643002: Fix names of local constants after blink rename. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
diff --git a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
index 3a8a3e246eecaeef61cd50a6e030c932f06e60e0..ea06ca42dee2175c697d3824f38ab36cd2b510e1 100644
--- a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
+++ b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
@@ -65,17 +65,17 @@ void AllocateVideoAndAudioBitrates(ExceptionState& exception_state,
// Clamp incoming values into a signed integer's range.
// TODO(mcasas): This section would no be needed if the bit rates are signed
// or double, see https://github.com/w3c/mediacapture-record/issues/48.
- const unsigned k_max_int_as_unsigned = std::numeric_limits<int>::max();
+ const unsigned kMaxIntAsUnsigned = std::numeric_limits<int>::max();
int overall_bps = 0;
if (options.hasBitsPerSecond())
- overall_bps = std::min(options.bitsPerSecond(), k_max_int_as_unsigned);
+ overall_bps = std::min(options.bitsPerSecond(), kMaxIntAsUnsigned);
int video_bps = 0;
if (options.hasVideoBitsPerSecond() && use_video)
- video_bps = std::min(options.videoBitsPerSecond(), k_max_int_as_unsigned);
+ video_bps = std::min(options.videoBitsPerSecond(), kMaxIntAsUnsigned);
int audio_bps = 0;
if (options.hasAudioBitsPerSecond() && use_audio)
- audio_bps = std::min(options.audioBitsPerSecond(), k_max_int_as_unsigned);
+ audio_bps = std::min(options.audioBitsPerSecond(), kMaxIntAsUnsigned);
if (use_audio) {
// |overallBps| overrides the specific audio and video bit rates.

Powered by Google App Engine
This is Rietveld 408576698