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

Unified Diff: content/browser/renderer_host/media/audio_input_sync_writer.cc

Issue 2270863002: Update log text for glitch info in AudioSyncReader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review. Rebase. Created 4 years, 4 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 | « no previous file | content/browser/renderer_host/media/audio_sync_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_input_sync_writer.cc
diff --git a/content/browser/renderer_host/media/audio_input_sync_writer.cc b/content/browser/renderer_host/media/audio_input_sync_writer.cc
index 98817e2127fc7e83b47d07c89ec597fc062c6713..ff33650e082e7af2479628defba3f162ddd02acc 100644
--- a/content/browser/renderer_host/media/audio_input_sync_writer.cc
+++ b/content/browser/renderer_host/media/audio_input_sync_writer.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "base/format_macros.h"
#include "base/metrics/histogram.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
@@ -108,13 +109,8 @@ AudioInputSyncWriter::~AudioInputSyncWriter() {
AUDIO_CAPTURER_AUDIO_GLITCHES_MAX + 1);
std::string log_string = base::StringPrintf(
-#if defined(COMPILER_MSVC)
- "AISW: number of detected audio glitches: %Iu out of %Iu",
-#else
- "AISW: number of detected audio glitches: %zu out of %zu",
-#endif
- write_error_count_,
- write_count_);
+ "AISW: number of detected audio glitches: %" PRIuS " out of %" PRIuS,
+ write_error_count_, write_count_);
MediaStreamManager::SendMessageToNativeLog(log_string);
DVLOG(1) << log_string;
}
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_sync_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698