From e65812427db6609f4327dabc5336a9d07d7a182d Mon Sep 17 00:00:00 2001 From: "glaznev@webrtc.org" Date: Fri, 19 Sep 2014 16:53:46 +0000 Subject: [PATCH] Fixing compilation failure in peerconnection_jni.cc with WEBRTC_CHROMIUM_BUILD. Symbol LogcatTraceContext not defined. Submitting on behalf of serya@. Dup of https://webrtc-codereview.appspot.com/29529004/ TEST=Build target libjingle_peerconnection_javalib with applied CL https://codereview.chromium.org/551793003/ BUG=https://crbug.com/383418 R=serya@chromium.org Review URL: https://webrtc-codereview.appspot.com/28529004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7244 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/app/webrtc/java/jni/peerconnection_jni.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/talk/app/webrtc/java/jni/peerconnection_jni.cc b/talk/app/webrtc/java/jni/peerconnection_jni.cc index e0207e44da..ba540710fa 100644 --- a/talk/app/webrtc/java/jni/peerconnection_jni.cc +++ b/talk/app/webrtc/java/jni/peerconnection_jni.cc @@ -2686,12 +2686,12 @@ JOW(void, Logging_nativeEnableTracing)( std::string path = JavaToStdString(jni, j_path); if (nativeLevels != webrtc::kTraceNone) { webrtc::Trace::set_level_filter(nativeLevels); -#ifdef ANDROID +#if defined(ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD) if (path != "logcat:") { #endif CHECK_EQ(0, webrtc::Trace::SetTraceFile(path.c_str(), false)) << "SetTraceFile failed"; -#ifdef ANDROID +#if defined(ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD) } else { // Intentionally leak this to avoid needing to reason about its lifecycle. // It keeps no state and functions only as a dispatch point.