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

Unified Diff: content/renderer/media/media_recorder_handler.cc

Issue 1875913002: Cleanup: Convert const char* kFoo to const char kFoo[]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « content/common/origin_trials/trial_token.cc ('k') | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_recorder_handler.cc
diff --git a/content/renderer/media/media_recorder_handler.cc b/content/renderer/media/media_recorder_handler.cc
index aa416728d1ad34b6bf851f0877ab461c5e31a803..0beedc394745310459719b71055efe2751366f60 100644
--- a/content/renderer/media/media_recorder_handler.cc
+++ b/content/renderer/media/media_recorder_handler.cc
@@ -65,9 +65,9 @@ bool MediaRecorderHandler::canSupportMimeType(
// Both |video| and |audio| support empty |codecs|; |type| == "video" supports
// vp8, vp9 or opus; |type| = "audio", supports only opus.
// http://www.webmproject.org/docs/container Sec:"HTML5 Video Type Parameters"
- static const char* kVideoCodecs[] = { "vp8", "vp9", "opus" };
- static const char* kAudioCodecs[] = { "opus" };
- const char** codecs = video ? &kVideoCodecs[0] : &kAudioCodecs[0];
+ static const char* const kVideoCodecs[] = { "vp8", "vp9", "opus" };
+ static const char* const kAudioCodecs[] = { "opus" };
+ const char* const* codecs = video ? &kVideoCodecs[0] : &kAudioCodecs[0];
int codecs_count = video ? arraysize(kVideoCodecs) : arraysize(kAudioCodecs);
std::vector<std::string> codecs_list;
« no previous file with comments | « content/common/origin_trials/trial_token.cc ('k') | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698