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

Unified Diff: ppapi/nacl_irt/plugin_startup.cc

Issue 200283002: Fix the crash for the AudioShared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@open_resource3
Patch Set: Created 6 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: ppapi/nacl_irt/plugin_startup.cc
diff --git a/ppapi/nacl_irt/plugin_startup.cc b/ppapi/nacl_irt/plugin_startup.cc
index 986fe32337087dd76f6a294cdc9c22f4cb627b89..e0f7e0ab04be7c69b9968642ab1ee58cd21579b1 100644
--- a/ppapi/nacl_irt/plugin_startup.cc
+++ b/ppapi/nacl_irt/plugin_startup.cc
@@ -11,6 +11,7 @@
#include "base/threading/thread.h"
#include "ipc/ipc_channel_handle.h"
#include "ppapi/nacl_irt/manifest_service.h"
+#include "ppapi/shared_impl/ppb_audio_shared.h"
namespace ppapi {
namespace {
@@ -79,6 +80,8 @@ void StartUpPlugin() {
base::Bind(StartUpManifestServiceOnIOThread, &event));
event.Wait();
}
+
+ PPB_Audio_Shared::SetNaClMode();
}
int GetBrowserIPCFileDescriptor() {

Powered by Google App Engine
This is Rietveld 408576698