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

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

Issue 2849633002: Get rid of base::SharedMemory::NULLHandle(); (Closed)
Patch Set: Rebase. 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_audio_input_host.cc
diff --git a/content/renderer/pepper/pepper_audio_input_host.cc b/content/renderer/pepper/pepper_audio_input_host.cc
index 1805eb7d3f7aa06e2dc7bbd95dfb086aec575162..df4383fc656af400a9aff44f5b9abf619681488a 100644
--- a/content/renderer/pepper/pepper_audio_input_host.cc
+++ b/content/renderer/pepper/pepper_audio_input_host.cc
@@ -67,9 +67,7 @@ void PepperAudioInputHost::StreamCreated(
}
void PepperAudioInputHost::StreamCreationFailed() {
- OnOpenComplete(PP_ERROR_FAILED,
- base::SharedMemory::NULLHandle(),
- 0,
+ OnOpenComplete(PP_ERROR_FAILED, base::SharedMemoryHandle(), 0,
base::SyncSocket::kInvalidHandle);
}
@@ -144,7 +142,7 @@ void PepperAudioInputHost::OnOpenComplete(
if (result == PP_OK) {
IPC::PlatformFileForTransit temp_socket =
IPC::InvalidPlatformFileForTransit();
- base::SharedMemoryHandle temp_shmem = base::SharedMemory::NULLHandle();
+ base::SharedMemoryHandle temp_shmem;
result = GetRemoteHandles(
scoped_socket, scoped_shared_memory, &temp_socket, &temp_shmem);
« no previous file with comments | « content/renderer/pepper/mock_renderer_ppapi_host.cc ('k') | content/renderer/pepper/pepper_audio_output_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698