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

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

Issue 12537014: Make SharedMemory track the size that was actually mapped (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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: content/browser/renderer_host/media/audio_input_sync_writer.cc
===================================================================
--- content/browser/renderer_host/media/audio_input_sync_writer.cc (revision 190994)
+++ content/browser/renderer_host/media/audio_input_sync_writer.cc (working copy)
@@ -18,9 +18,9 @@
shared_memory_segment_count_(shared_memory_segment_count),
current_segment_id_(0) {
DCHECK_GT(shared_memory_segment_count, 0);
- DCHECK_EQ(shared_memory->created_size() % shared_memory_segment_count, 0u);
+ DCHECK_EQ(shared_memory->requested_size() % shared_memory_segment_count, 0u);
shared_memory_segment_size_ =
- shared_memory->created_size() / shared_memory_segment_count;
+ shared_memory->requested_size() / shared_memory_segment_count;
}
AudioInputSyncWriter::~AudioInputSyncWriter() {}

Powered by Google App Engine
This is Rietveld 408576698