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

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

Issue 811553002: Roll WebRTC 7902:7905, Libjingle 7898:7905 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include updates from pkasting Created 6 years 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/renderer/media/webrtc_audio_device_not_impl.h ('k') | third_party/libjingle/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_audio_device_not_impl.cc
diff --git a/content/renderer/media/webrtc_audio_device_not_impl.cc b/content/renderer/media/webrtc_audio_device_not_impl.cc
index 5b5e4677cab347c945b286b4222c6df2ae87da56..dd16ddfc3d27357fb52dde6c904ec7a1decf5822 100644
--- a/content/renderer/media/webrtc_audio_device_not_impl.cc
+++ b/content/renderer/media/webrtc_audio_device_not_impl.cc
@@ -4,12 +4,6 @@
#include "content/renderer/media/webrtc_audio_device_not_impl.h"
-namespace {
-
-const int64 kMillisecondsBetweenProcessCalls = 5000;
-
-} // namespace
-
namespace content {
WebRtcAudioDeviceNotImpl::WebRtcAudioDeviceNotImpl()
@@ -20,11 +14,10 @@ int32_t WebRtcAudioDeviceNotImpl::ChangeUniqueId(const int32_t id) {
return 0;
}
-int32_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() {
+int64_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() {
+ const int64_t kMillisecondsBetweenProcessCalls = 5000;
base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_);
- int64 time_until_next =
- kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds();
- return static_cast<int32_t>(time_until_next);
+ return kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds();
}
int32_t WebRtcAudioDeviceNotImpl::Process() {
« no previous file with comments | « content/renderer/media/webrtc_audio_device_not_impl.h ('k') | third_party/libjingle/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698