diff --git a/webrtc/voice_engine/include/voe_base.h b/webrtc/voice_engine/include/voe_base.h index c8db8c63d9..93dfcca13a 100644 --- a/webrtc/voice_engine/include/voe_base.h +++ b/webrtc/voice_engine/include/voe_base.h @@ -85,7 +85,9 @@ public: // receives callbacks for generated trace messages. static int SetTraceCallback(TraceCallback* callback); +#if !defined(WEBRTC_CHROMIUM_BUILD) static int SetAndroidObjects(void* javaVM, void* env, void* context); +#endif protected: VoiceEngine() {} diff --git a/webrtc/voice_engine/voice_engine_impl.cc b/webrtc/voice_engine/voice_engine_impl.cc index 4c02d8d23c..2f524bb012 100644 --- a/webrtc/voice_engine/voice_engine_impl.cc +++ b/webrtc/voice_engine/voice_engine_impl.cc @@ -12,9 +12,11 @@ #include "webrtc/modules/audio_device/android/audio_device_template.h" #include "webrtc/modules/audio_device/android/audio_record_jni.h" #include "webrtc/modules/audio_device/android/audio_track_jni.h" +#if !defined(WEBRTC_CHROMIUM_BUILD) #include "webrtc/modules/audio_device/android/opensles_input.h" #include "webrtc/modules/audio_device/android/opensles_output.h" #endif +#endif #include "webrtc/modules/audio_coding/main/interface/audio_coding_module.h" #include "webrtc/system_wrappers/interface/trace.h" @@ -151,6 +153,7 @@ bool VoiceEngine::Delete(VoiceEngine*& voiceEngine) return true; } +#if !defined(WEBRTC_CHROMIUM_BUILD) int VoiceEngine::SetAndroidObjects(void* javaVM, void* env, void* context) { #ifdef WEBRTC_ANDROID @@ -171,5 +174,6 @@ int VoiceEngine::SetAndroidObjects(void* javaVM, void* env, void* context) return -1; #endif } +#endif } // namespace webrtc