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

Issue 2163993002: Split onResourcesLoaded into multiple functions. (Closed)

Created:
4 years, 5 months ago by PEConn
Modified:
4 years, 4 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split onResourcesLoaded into multiple functions. We have so many resources that onResourcesLoaded is exceeding the 64KB limit Java has on methods. This CL splits onResourcesLoaded based on resource type, eg: onResourcesLoadedAnim, onResourcesLoadedDrawable, onResourcesLoadedString. BUG=629768 Committed: https://crrev.com/2c63be44901ccd5fe3af5323ca494959d497628a Cr-Commit-Position: refs/heads/master@{#407864}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Took the easy way out. #

Patch Set 3 : Moved ugly name to template variable #

Patch Set 4 : Fixed stupid bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M build/android/gyp/process_resources.py View 1 2 3 3 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 47 (23 generated)
PEConn
perezju@ and agrieve@ please take a look. https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py File build/android/gyp/process_resources.py (right): https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py#newcode238 build/android/gyp/process_resources.py:238: private static ...
4 years, 5 months ago (2016-07-20 15:58:40 UTC) #2
PEConn
Example output: public static void onResourcesLoaded(int packageId) { onResourcesLoadedAnim(packageId); onResourcesLoadedArray(packageId); onResourcesLoadedAttr(packageId); onResourcesLoadedBool(packageId); onResourcesLoadedColor(packageId); onResourcesLoadedDimen(packageId); onResourcesLoadedDrawable(packageId); ...
4 years, 5 months ago (2016-07-20 16:00:46 UTC) #5
Bernhard Bauer
LGTM if others are happy.
4 years, 5 months ago (2016-07-20 16:18:22 UTC) #6
PEConn
https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py File build/android/gyp/process_resources.py (right): https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py#newcode238 build/android/gyp/process_resources.py:238: private static void onResourcesLoaded{{ resource_type|title }}(int packageId) { On ...
4 years, 5 months ago (2016-07-20 16:58:26 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py File build/android/gyp/process_resources.py (right): https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py#newcode238 build/android/gyp/process_resources.py:238: private static void onResourcesLoaded{{ resource_type|title }}(int packageId) { On ...
4 years, 5 months ago (2016-07-20 17:08:34 UTC) #12
agrieve
lgtm https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py File build/android/gyp/process_resources.py (right): https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py#newcode238 build/android/gyp/process_resources.py:238: private static void onResourcesLoaded{{ resource_type|title }}(int packageId) { ...
4 years, 5 months ago (2016-07-20 17:20:27 UTC) #13
agrieve
https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py File build/android/gyp/process_resources.py (right): https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py#newcode227 build/android/gyp/process_resources.py:227: onResourcesLoaded{{ resource_type|title }}(packageId); Actually, please do a add a ...
4 years, 5 months ago (2016-07-20 17:21:36 UTC) #14
PEConn
https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py File build/android/gyp/process_resources.py (right): https://codereview.chromium.org/2163993002/diff/1/build/android/gyp/process_resources.py#newcode238 build/android/gyp/process_resources.py:238: private static void onResourcesLoaded{{ resource_type|title }}(int packageId) { On ...
4 years, 5 months ago (2016-07-20 17:41:37 UTC) #15
michaelbai
hold on, we probably don't need this.
4 years, 5 months ago (2016-07-21 01:56:02 UTC) #21
michaelbai
On 2016/07/21 01:56:02, michaelbai wrote: > hold on, we probably don't need this. I can't ...
4 years, 5 months ago (2016-07-21 01:59:32 UTC) #22
michaelbai
On 2016/07/21 01:59:32, michaelbai wrote: > On 2016/07/21 01:56:02, michaelbai wrote: > > hold on, ...
4 years, 5 months ago (2016-07-21 05:25:05 UTC) #23
PEConn
On 2016/07/21 05:25:05, michaelbai wrote: > On 2016/07/21 01:59:32, michaelbai wrote: > > On 2016/07/21 ...
4 years, 5 months ago (2016-07-21 05:40:31 UTC) #24
Ted C
On 2016/07/21 05:40:31, PEConn1 wrote: > On 2016/07/21 05:25:05, michaelbai wrote: > > On 2016/07/21 ...
4 years, 5 months ago (2016-07-23 01:06:47 UTC) #25
michaelbai
On 2016/07/23 01:06:47, Ted C wrote: > On 2016/07/21 05:40:31, PEConn1 wrote: > > On ...
4 years, 5 months ago (2016-07-23 01:16:00 UTC) #26
perezju
removing myself as reviewer, I think others can provide more valuable input
4 years, 5 months ago (2016-07-25 09:24:19 UTC) #27
PEConn
On 2016/07/23 01:06:47, Ted C wrote: > On 2016/07/21 05:40:31, PEConn1 wrote: > > On ...
4 years, 4 months ago (2016-07-26 15:12:05 UTC) #29
PEConn
On 2016/07/26 15:12:05, PEConn1 wrote: > On 2016/07/23 01:06:47, Ted C wrote: > > On ...
4 years, 4 months ago (2016-07-26 15:14:09 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2163993002/20001
4 years, 4 months ago (2016-07-26 17:24:46 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2163993002/40001
4 years, 4 months ago (2016-07-26 17:35:41 UTC) #37
PEConn
On 2016/07/26 17:24:46, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 4 months ago (2016-07-26 17:36:01 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/102298)
4 years, 4 months ago (2016-07-26 17:46:02 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2163993002/60001
4 years, 4 months ago (2016-07-26 17:48:01 UTC) #43
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-26 18:42:01 UTC) #45
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 18:46:19 UTC) #47
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2c63be44901ccd5fe3af5323ca494959d497628a
Cr-Commit-Position: refs/heads/master@{#407864}

Powered by Google App Engine
This is Rietveld 408576698