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

Unified Diff: content/renderer/media/android/audio_decoder_android.cc

Issue 651253002: Enforce handle ownership in base::Process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add empty line Created 6 years, 2 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/media/android/audio_decoder_android.cc
diff --git a/content/renderer/media/android/audio_decoder_android.cc b/content/renderer/media/android/audio_decoder_android.cc
index 72e25ab2bcce5585d6a7fd6be5de6d570448f218..f3e118ce641332ad945d5c0852d68407685a4647 100644
--- a/content/renderer/media/android/audio_decoder_android.cc
+++ b/content/renderer/media/android/audio_decoder_android.cc
@@ -15,6 +15,7 @@
#include "base/logging.h"
#include "base/memory/shared_memory.h"
#include "base/posix/eintr_wrapper.h"
+#include "base/process/process_handle.h"
#include "content/common/view_messages.h"
#include "media/base/android/webaudio_media_codec_info.h"
#include "media/base/audio_bus.h"
@@ -89,9 +90,8 @@ bool AudioDecoderIO::IsValid() const {
}
bool AudioDecoderIO::ShareEncodedToProcess(base::SharedMemoryHandle* handle) {
- return encoded_shared_memory_.ShareToProcess(
- base::Process::Current().handle(),
- handle);
+ return encoded_shared_memory_.ShareToProcess(base::GetCurrentProcessHandle(),
+ handle);
}
static float ConvertSampleToFloat(int16_t sample) {
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/media/android/stream_texture_factory_synchronous_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698