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

Unified Diff: content/renderer/pepper/pepper_platform_audio_output.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 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
Index: content/renderer/pepper/pepper_platform_audio_output.cc
diff --git a/content/renderer/pepper/pepper_platform_audio_output.cc b/content/renderer/pepper/pepper_platform_audio_output.cc
index e847e72478061d57fdd996277bd766090285941a..0a16cf1208609060176693ceed60e26724d3ce93 100644
--- a/content/renderer/pepper/pepper_platform_audio_output.cc
+++ b/content/renderer/pepper/pepper_platform_audio_output.cc
@@ -92,11 +92,10 @@ void PepperPlatformAudioOutput::OnStreamCreated(
base::SharedMemoryHandle handle,
base::SyncSocket::Handle socket_handle,
int length) {
-#if defined(OS_WIN)
DCHECK(handle.IsValid());
+#if defined(OS_WIN)
DCHECK(socket_handle);
#else
- DCHECK(base::SharedMemory::IsHandleValid(handle));
DCHECK_NE(-1, socket_handle);
#endif
DCHECK(length);

Powered by Google App Engine
This is Rietveld 408576698