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

Issue 2803203002: Android Logging.java: Load native library only when needed (Closed)

Created:
3 years, 8 months ago by magjed_webrtc
Modified:
3 years, 8 months ago
Reviewers:
AlexG, noahric, sakal
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Android Logging.java: Load native library only when needed Logging.java currently always tries to load jingle_peerconnection_so in the static section, but some clients don't want to use it. This CL loads jingle_peerconnection_so only when a client requests it by calling one of: * Logging.enableLogThreads * Logging.enableLogTimeStamps * Logging.enableTracing * Logging.enableLogToDebugOutput BUG=b/36410678 Review-Url: https://codereview.webrtc.org/2803203002 Cr-Commit-Position: refs/heads/master@{#17647} Committed: https://chromium.googlesource.com/external/webrtc/+/dee5eb14e1d4e5bd894772448cc9418e94b3a967

Patch Set 1 #

Patch Set 2 : Load jingle_peerconnection_so in FileVideoCapturer and VideoFileRenderer #

Total comments: 4

Patch Set 3 : Add class comment to Logging.java, and always set fallbackLogger.setLevel(Level.ALL). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -15 lines) Patch
M webrtc/base/java/src/org/webrtc/Logging.java View 1 2 5 chunks +32 lines, -15 lines 0 comments Download
M webrtc/sdk/android/api/org/webrtc/FileVideoCapturer.java View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/sdk/android/api/org/webrtc/VideoFileRenderer.java View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
magjed_webrtc
Sami - please take a look.
3 years, 8 months ago (2017-04-07 08:42:38 UTC) #3
sakal
lgtm
3 years, 8 months ago (2017-04-07 08:48:18 UTC) #6
magjed_webrtc
Alex - please take a look.
3 years, 8 months ago (2017-04-07 11:24:59 UTC) #14
noahric
LGTM modulo comments. Thanks for this! Long term, it'd still be nice if the name ...
3 years, 8 months ago (2017-04-10 16:56:49 UTC) #16
AlexG
lgtm There are multiple calls of System.loadLibrary("jingle_peerconnection_so") throughout WebRTC code. May be in future we ...
3 years, 8 months ago (2017-04-10 21:23:02 UTC) #17
Taylor Brandstetter
On 2017/04/10 21:23:02, AlexG wrote: > lgtm > > There are multiple calls of System.loadLibrary("jingle_peerconnection_so") ...
3 years, 8 months ago (2017-04-10 22:15:54 UTC) #18
magjed_webrtc
https://codereview.webrtc.org/2803203002/diff/20001/webrtc/base/java/src/org/webrtc/Logging.java File webrtc/base/java/src/org/webrtc/Logging.java (right): https://codereview.webrtc.org/2803203002/diff/20001/webrtc/base/java/src/org/webrtc/Logging.java#newcode19 webrtc/base/java/src/org/webrtc/Logging.java:19: /** Java wrapper for WebRTC logging. */ On 2017/04/10 ...
3 years, 8 months ago (2017-04-11 10:58:49 UTC) #19
magjed_webrtc
On 2017/04/10 21:23:02, AlexG wrote: > lgtm > > There are multiple calls of System.loadLibrary("jingle_peerconnection_so") ...
3 years, 8 months ago (2017-04-11 10:59:08 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2803203002/40001
3 years, 8 months ago (2017-04-11 10:59:19 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/webrtc/+/dee5eb14e1d4e5bd894772448cc9418e94b3a967
3 years, 8 months ago (2017-04-11 11:21:55 UTC) #26
brandtr
3 years, 8 months ago (2017-04-12 16:09:26 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.webrtc.org/2816753002/ by brandtr@webrtc.org.

The reason for reverting is: Breaks C++ logs in Java apps..

Powered by Google App Engine
This is Rietveld 408576698