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

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

Issue 2116443002: Restricting output device authorization timeout to Windows only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | media/audio/audio_output_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device_factory.cc
diff --git a/content/renderer/media/audio_device_factory.cc b/content/renderer/media/audio_device_factory.cc
index dea30f5864dcee2a29f6d0fbebd28a0d85993611..0780083fd667ec33ceb9b85e8cf9b006de87cfaa 100644
--- a/content/renderer/media/audio_device_factory.cc
+++ b/content/renderer/media/audio_device_factory.cc
@@ -24,7 +24,11 @@ namespace content {
AudioDeviceFactory* AudioDeviceFactory::factory_ = NULL;
namespace {
+#if defined(OS_WIN)
const int64_t kMaxAuthorizationTimeoutMs = 900;
Guido Urdaneta 2016/06/30 09:11:02 Add a comment explaining why the timeout is necess
+#else
+const int64_t kMaxAuthorizationTimeoutMs = 0; // No timeout.
+#endif // defined(OS_WIN)
media::AudioLatency::LatencyType GetSourceLatencyType(
AudioDeviceFactory::SourceType source) {
« no previous file with comments | « no previous file | media/audio/audio_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698