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

Issue 1806963002: Reduce APK size by disabling WebRTC. (Closed)

Created:
4 years, 9 months ago by Yuwei
Modified:
4 years, 9 months ago
Reviewers:
Sergey Ulanov, Lambros
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce APK size by disabling WebRTC. Reduced official build size from 7.9MB to 6.4MB. Can reenable WebRTC by changing the BUILD.gn file. BUG=595038 Committed: https://crrev.com/e8f2d518b2337b2ae8736ee0f032d2fffc8b16b8 Cr-Commit-Position: refs/heads/master@{#381636}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Change macro name, use separate config #

Total comments: 1

Patch Set 3 : Reviewer's Feedback #

Patch Set 4 : add condition for GYP #

Total comments: 15

Patch Set 5 : Reviewer's feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -6 lines) Patch
M remoting/BUILD.gn View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/client/BUILD.gn View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M remoting/client/chromoting_client.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M remoting/remoting_android.gypi View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M remoting/remoting_client.gypi View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
Yuwei
PTAL:)
4 years, 9 months ago (2016-03-16 17:37:21 UTC) #2
Lambros
Just some drive-by comments - I'll defer final LG to Sergey. https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn File remoting/BUILD.gn (right): ...
4 years, 9 months ago (2016-03-16 18:12:20 UTC) #4
Yuwei
Just replied for the comment... https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn File remoting/BUILD.gn (right): https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn#newcode16 remoting/BUILD.gn:16: defines += [ "DISABLE_WEBRTC=1" ...
4 years, 9 months ago (2016-03-16 18:39:01 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn File remoting/BUILD.gn (right): https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn#newcode15 remoting/BUILD.gn:15: if (is_android) { config(version) is not the right place ...
4 years, 9 months ago (2016-03-16 19:12:36 UTC) #8
Yuwei
https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn File remoting/BUILD.gn (right): https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn#newcode16 remoting/BUILD.gn:16: defines += [ "DISABLE_WEBRTC=1" ] On 2016/03/16 19:12:36, Sergey ...
4 years, 9 months ago (2016-03-16 19:45:34 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn File remoting/BUILD.gn (right): https://codereview.chromium.org/1806963002/diff/1/remoting/BUILD.gn#newcode16 remoting/BUILD.gn:16: defines += [ "DISABLE_WEBRTC=1" ] On 2016/03/16 19:45:34, yuweih ...
4 years, 9 months ago (2016-03-16 20:13:12 UTC) #10
Yuwei
Followed reviewer's feedback. Used `ENABLE_WEBRTC_REMOTING_CLIENT` as the macro name. Macro defined in a separate config ...
4 years, 9 months ago (2016-03-16 20:50:00 UTC) #11
Sergey Ulanov
https://codereview.chromium.org/1806963002/diff/20001/remoting/client/chromoting_client.cc File remoting/client/chromoting_client.cc (right): https://codereview.chromium.org/1806963002/diff/20001/remoting/client/chromoting_client.cc#newcode75 remoting/client/chromoting_client.cc:75: #if defined(OS_NACL) Please see my previous comment. We no ...
4 years, 9 months ago (2016-03-16 21:01:19 UTC) #12
Yuwei
PTAL https://codereview.chromium.org/1806963002/diff/1/remoting/client/chromoting_client.cc File remoting/client/chromoting_client.cc (right): https://codereview.chromium.org/1806963002/diff/1/remoting/client/chromoting_client.cc#newcode76 remoting/client/chromoting_client.cc:76: LOG(FATAL) << "WebRTC is not supported in webapp."; ...
4 years, 9 months ago (2016-03-16 21:21:00 UTC) #13
nicholss
On 2016/03/16 21:21:00, yuweih wrote: > PTAL > > https://codereview.chromium.org/1806963002/diff/1/remoting/client/chromoting_client.cc > File remoting/client/chromoting_client.cc (right): > ...
4 years, 9 months ago (2016-03-16 21:29:42 UTC) #14
Yuwei
On 2016/03/16 21:29:42, nicholss wrote: > On 2016/03/16 21:21:00, yuweih wrote: > > PTAL > ...
4 years, 9 months ago (2016-03-16 21:52:54 UTC) #15
Sergey Ulanov
To try GYP build you can follow the "GYP build" instructions on https://www.chromium.org/developers/how-tos/get-the-code Basically you ...
4 years, 9 months ago (2016-03-16 23:15:08 UTC) #16
Yuwei
I'm following these instructions for GYP. Thanks! https://codereview.chromium.org/1806963002/diff/60001/remoting/BUILD.gn File remoting/BUILD.gn (right): https://codereview.chromium.org/1806963002/diff/60001/remoting/BUILD.gn#newcode17 remoting/BUILD.gn:17: config("webrtc") { ...
4 years, 9 months ago (2016-03-16 23:31:55 UTC) #17
Yuwei
https://codereview.chromium.org/1806963002/diff/60001/remoting/BUILD.gn File remoting/BUILD.gn (right): https://codereview.chromium.org/1806963002/diff/60001/remoting/BUILD.gn#newcode17 remoting/BUILD.gn:17: config("webrtc") { On 2016/03/16 23:15:07, Sergey Ulanov wrote: > ...
4 years, 9 months ago (2016-03-16 23:58:18 UTC) #18
Sergey Ulanov
lgtm
4 years, 9 months ago (2016-03-17 00:23:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1806963002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1806963002/80001
4 years, 9 months ago (2016-03-17 00:26:35 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-17 01:46:58 UTC) #22
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 01:48:58 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e8f2d518b2337b2ae8736ee0f032d2fffc8b16b8
Cr-Commit-Position: refs/heads/master@{#381636}

Powered by Google App Engine
This is Rietveld 408576698