0
Commit Graph

63 Commits

Author SHA1 Message Date
Martin Kong
dfea3ec278 Split chrome_test_java into multiple targets
This CL splits the giant chrome_test_java target into multiple targets
based on the package, so that a change to a single test file will not
cause all test files to be recompiled, so that the build time will be
much shorter if we make some changes to a single test file.

For changes to a single test file, the build time went down from
50 seconds to 30 seconds. Note that this time saving only applies
when we are modifying the public functions of tests or test utils.

A followup CL will do the same thing to chrome_unit_test_java.

Bug: 40286190
Change-Id: I682c9d992771478f7b086b35e3e31a4fcb6d1f70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6168523
Owners-Override: Sam Maier <smaier@chromium.org>
Commit-Queue: Martin Kong <martinkong@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1407558}
2025-01-16 13:40:43 -08:00
dpapad
bfad4d4376 Remove refs to Grit's output_all_resource_defines option, part 1.
In this part updating files that are either owned by everyone or I
have ownership.

This option is no longer respected by Grit, as of crrev.com/c/786121
(~7 years ago), but it is still present in a lot of grd files.

Bug: 389466679
Change-Id: I50608a355313dcb2adb372b01b1d6cbd9a7aaf12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6170774
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405965}
2025-01-14 01:29:31 -08:00
Andrew Grieve
ff18140b82 JNI Zero: Rename boundary export defines
JNI_POSSIBLE_BOUNDARY_EXPORT -> JNI_ZERO_MUXED_ENTRYPOINT
JNI_BOUNDARY_EXPORT -> JNI_ZERO_BOUNDARY_EXPORT

Removes the need for a public config that adds defines.

Bug: None
Change-Id: I2e49c11fb700e2fb667676f74a00189d310dded8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6044104
Reviewed-by: Sam Maier <smaier@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1387691}
2024-11-25 17:29:19 +00:00
Jennifer Nejad
1a8e208dcc Fix grammatical error in the android docs
This change adds an apostrophe to make the sentence more 
grammatically correct.

Bug: 363034680
Change-Id: I6e438087efcae49b0dfdc9480895f1580d7917cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5882116
Reviewed-by: Sam Fortiner <samfort@microsoft.com>
Commit-Queue: Jennifer Nejad <jejacobs@microsoft.com>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1369099}
2024-10-15 23:30:32 +00:00
Andrew Grieve
bf63c45549 Android: Remove expired histograms for DFMs
Low-Coverage-Reason: Removing tests that depended on histograms
Bug: 334917302
Change-Id: Ie68a99c72803bb6c190058672c5959046d8683c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5834233
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Fred Mello <fredmello@chromium.org>
Reviewed-by: Fred Mello <fredmello@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1350865}
2024-09-04 16:47:49 +00:00
Andrew Grieve
5d8fc6663d Update guidance as to when to create a new split APK
50kb -> 150kb.

Change-Id: I89f3de4a2505b2d44f89872e353b329b6812b2f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5793996
Reviewed-by: Sam Maier <smaier@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1342921}
2024-08-16 18:10:40 +00:00
Joanna Wang
81bea755a3 Move bundletool cipd package under cipd/ subdir.
Bug: b/359945368
Change-Id: I6605f4577118d043e997e3af118d4014de1523c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5789025
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Joanna Wang <jojwang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1342302}
2024-08-15 16:26:56 +00:00
James Lee
ec45f5d503 Remove empty histogram file
This file was split into per-feature files a few years back, removing
it now as it still frequently comes up in CodeSearch which is
unhelpful.

This removes all references I found, other than the many comment-only
references in C++ code.

Bug: 348373378
Change-Id: I7c3e4968ced5c5ff57d9c24f69ebcdfd448c1a74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5636403
Commit-Queue: James Lee <ljjlee@google.com>
Reviewed-by: Luc Nguyen <lucnguyen@google.com>
Reviewed-by: Stephanie Kim <kimstephanie@google.com>
Auto-Submit: James Lee <ljjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1317804}
2024-06-21 07:13:38 +00:00
Sam Maier
aa615189cd Revert "jni_zero: rename jni_zero_helper.h to jni_zero.h"
This reverts commit 8c6c3cce1b.

Reason for revert: Changed my mind, will leave jni_zero_helper.h as is

Original change's description:
> jni_zero: rename jni_zero_helper.h to jni_zero.h
>
> The followup here will be to merge all the headers together.
>
> Bug: 325057352
> Change-Id: Ic663016205b52f44b10ac3a0eaca132c4b0ac3e0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292374
> Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
> Auto-Submit: Sam Maier <smaier@chromium.org>
> Owners-Override: Sam Maier <smaier@chromium.org>
> Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
> Commit-Queue: Sam Maier <smaier@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1259956}

Bug: 325057352
Change-Id: Ia1343346f65101877556fc64acf348c2f3dc4be3
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5291842
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1259991}
2024-02-13 19:56:17 +00:00
Sam Maier
8c6c3cce1b jni_zero: rename jni_zero_helper.h to jni_zero.h
The followup here will be to merge all the headers together.

Bug: 325057352
Change-Id: Ic663016205b52f44b10ac3a0eaca132c4b0ac3e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5292374
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Auto-Submit: Sam Maier <smaier@chromium.org>
Owners-Override: Sam Maier <smaier@chromium.org>
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1259956}
2024-02-13 18:57:17 +00:00
Andrew Grieve
982fe8a2db Remove chrome_public_common_apk_or_module_tmpl
Template was refactored and is no longer used.

Bug: 1427610
Change-Id: I6701fd89d5cb216e0c22936e28f9d59b909c0c1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5159327
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Egor Pasko <pasko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1241961}
2024-01-02 16:41:51 +00:00
Sam Maier
2d208bd6cb jni_zero: Renaming JNI export macros and deleting use of BASE_EXPORT
These 2 different export macros were confusingly named, so I renamed
them to more closely describe what they are intended to.

Also, I've broken the dep onto BASE_EXPORT.

Bug: 1377351
Change-Id: I59881bdbc10e4931a32a48b64ce2984cfd70136c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4953085
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Sam Maier <smaier@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Sam Maier <smaier@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1212226}
2023-10-19 17:04:43 +00:00
Sam Maier
1b0108aa4b jni_zero: Moving jni_generator_helper.h to third_party/jni_zero
This is intended as a no-change operation, just a move/rename.

Bug: 1456762
Change-Id: Ibc3390ba39f97bb67502689f3d10a80e34d66bee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4949471
Auto-Submit: Sam Maier <smaier@chromium.org>
Owners-Override: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1211152}
2023-10-17 22:29:37 +00:00
Sam Maier
e1df6f2f72 Adding README to base/android/jni_generator
Change-Id: Ifdb5a82fc88743ae9155063e183296e586ec64ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4771080
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Peter Pakkenberg <pbirk@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1182565}
2023-08-11 14:20:40 +00:00
Andrew Grieve
912f663357 Rename trichrome_module_descs -> chrome_module_descs
In preparation for creating a chrome_bundle target.

Bug: 1426950
Change-Id: I125eda4ff86c4257229f29c1c2ae6470b2247f7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4401199
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1128682}
2023-04-11 16:11:56 +00:00
Sam Maier
b0bd6d9e20 Reland "Removing concept of MainDex/non-MainDex native"
This is a reland of commit 126fae8049

Locally tested failing robolectric tests, they now pass.

Original change's description:
> Removing concept of MainDex/non-MainDex native
>
> With automatic registration being the default now, there is no need to
> differentiate MainDex/non-MainDex as automatic registration is lazy
> anyways.
>
> Low-Coverage-Reason: Just a deletion of code
> Bug: 1371542
> Change-Id: I85cc1f72e71eb4b2ed36a06bd8b0a25a484ce3fe
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385433
> Owners-Override: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Commit-Queue: Sam Maier <smaier@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1124766}

Bug: 1371542
Change-Id: Ic54ae392db54e0da6b6dc0cf48867a1b96dc87c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4389822
Auto-Submit: Sam Maier <smaier@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126519}
2023-04-05 13:22:23 +00:00
Sam Maier
d65b572570 Revert "Removing concept of MainDex/non-MainDex native"
This reverts commit 126fae8049.

Reason for revert: Causing test failures in chrome_junit_tests
https://ci.chromium.org/ui/p/chromium/builders/ci/Android%20arm%20Builder%20%28dbg%29/67224/overview

Original change's description:
> Removing concept of MainDex/non-MainDex native
>
> With automatic registration being the default now, there is no need to
> differentiate MainDex/non-MainDex as automatic registration is lazy
> anyways.
>
> Low-Coverage-Reason: Just a deletion of code
> Bug: 1371542
> Change-Id: I85cc1f72e71eb4b2ed36a06bd8b0a25a484ce3fe
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385433
> Owners-Override: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Commit-Queue: Sam Maier <smaier@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1124766}

Bug: 1371542
Change-Id: Iaba2c00b3dc8d5433ec2397c2809b501354b8f01
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4389144
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Peilin Wang <peilinwang@google.com>
Cr-Commit-Position: refs/heads/main@{#1124839}
2023-03-31 19:47:48 +00:00
Sam Maier
126fae8049 Removing concept of MainDex/non-MainDex native
With automatic registration being the default now, there is no need to
differentiate MainDex/non-MainDex as automatic registration is lazy
anyways.

Low-Coverage-Reason: Just a deletion of code
Bug: 1371542
Change-Id: I85cc1f72e71eb4b2ed36a06bd8b0a25a484ce3fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4385433
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1124766}
2023-03-31 16:16:02 +00:00
Sam Maier
30cbc6fce6 chrome_modern_bundle deletion: Removing chrome_modern_module_descs
Since chrome_modern_bundle is gone, the module descriptors no longer
need to exist.

Bug: 1366416
Change-Id: Iad911c769baf019530f78c2882f7a58bf95f8344
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4262690
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1106466}
2023-02-16 22:24:05 +00:00
Sam Maier
79e40daf0e Reland "JNI: Give each DFM its own registration file"
This is a reland of commit c0e6688032

Reland because revert was mistaken.

Original change's description:
> JNI: Give each DFM its own registration file
>
> This is accomplished by giving every global registration file (GEN_JNI
> and J/N) a unique prefix for each module - so vr_GEN_JNI or J/vr_N.
>
> In order to detect this, we've changed @NativeMethods to optionally
> accept a parameter, which would be the module's name. So, now any
> module using JNI should look like @NativeMethods("vr").
>
> This helps unblock multiplexing.
>
> Bug: 1371542
> Change-Id: I91e426d208a205c10bf34c6493a170e9af879dbc
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4067606
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Auto-Submit: Sam Maier <smaier@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Owners-Override: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1097772}

Bug: 1371542
Change-Id: I26ad36682ed37761fffa32a7d07e0dea50b747d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4200036
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1097965}
2023-01-27 17:26:11 +00:00
Nancy Wang
ec06045577 Revert "JNI: Give each DFM its own registration file"
This reverts commit c0e6688032.

Reason for revert: Break many Android build, e.g.
https://ci.chromium.org/p/chromium/builders/ci/Android%20Release%20%28Nexus%205X%29/61697
https://ci.chromium.org/p/chromium/builders/ci/android-archive-rel/30623?
https://ci.chromium.org/p/chromium/builders/ci/Android%20arm%20Builder%20(dbg)/64455?


Original change's description:
> JNI: Give each DFM its own registration file
>
> This is accomplished by giving every global registration file (GEN_JNI
> and J/N) a unique prefix for each module - so vr_GEN_JNI or J/vr_N.
>
> In order to detect this, we've changed @NativeMethods to optionally
> accept a parameter, which would be the module's name. So, now any
> module using JNI should look like @NativeMethods("vr").
>
> This helps unblock multiplexing.
>
> Bug: 1371542
> Change-Id: I91e426d208a205c10bf34c6493a170e9af879dbc
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4067606
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Auto-Submit: Sam Maier <smaier@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Owners-Override: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1097772}

Bug: 1371542
Change-Id: I1ce4bacbb26317432ec3a7d48057e7e420d7b45f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4199835
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
Auto-Submit: Nancy Wang <nancylingwang@chromium.org>
Owners-Override: Nancy Wang <nancylingwang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1097799}
2023-01-27 05:59:34 +00:00
Sam Maier
c0e6688032 JNI: Give each DFM its own registration file
This is accomplished by giving every global registration file (GEN_JNI
and J/N) a unique prefix for each module - so vr_GEN_JNI or J/vr_N.

In order to detect this, we've changed @NativeMethods to optionally
accept a parameter, which would be the module's name. So, now any
module using JNI should look like @NativeMethods("vr").

This helps unblock multiplexing.

Bug: 1371542
Change-Id: I91e426d208a205c10bf34c6493a170e9af879dbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4067606
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1097772}
2023-01-27 03:19:05 +00:00
Sam Maier
bd22e618a9 Automatically adding @IdentifierNameString for DFMs
Bug: 1170343
Change-Id: I2a5c082d2069ba40318b9a53553d465c1e632702
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3607495
Auto-Submit: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#997760}
2022-04-29 17:06:47 +00:00
Andrew Grieve
520e090fbc Added //docs/android_isolated_splits.md
My goal is to document all the bugs / quirks with respect to isolated splits.

The audience is Chrome devs looking to write an isolated split, or devs
that are considering adopting isolated splits in other apps.

Bug: None
Change-Id: Id0b332b90ad90f81b93f73ebc7aa3b36218cf2d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3608556
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Clark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/main@{#996661}
2022-04-27 13:19:25 +00:00
Mohamed Heikal
f9d9edb492 Remove version from bundletool filepath references (Reland)
The bundletool jar path containing version is listed in a few places in
the build system. Remove the version from the jar path (autoroller
cannot update all these places with the new version number). Also adds
the bundletool jar path as a input to a few actions to avoid stale
builds from cls just updating bundletool.

Change-Id: I8d497bb882008ad4e34a5a0aa795ee4df5625e3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3200346
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Auto-Submit: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927801}
2021-10-04 20:05:10 +00:00
Peter Kotwicz
388a02ca36 Revert "Remove version from bundletool filepath references in build"
This reverts commit 0dd7b07d2b.

Reason for revert: Broke compile (Reference in app_bundle_utils.py)

Original change's description:
> Remove version from bundletool filepath references in build
>
> The bundletool jar path containing the version is listed in a few places
> in the build system. Remove the version from the jar path (autoroller
> cannot update all these places with the new version number). Also adds
> the bundletool jar path as a input to a few actions to avoid stale
> builds from cls just updating bundletool.
>
> Change-Id: I41cbe7d45e9f31b64b7f3148687004aa2dbe48e7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3166930
> Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#927311}

Change-Id: I0e95fd40165b3b695d66f9a8b846a0ef5b0c2b6a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3198541
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Peter Kotwicz <pkotwicz@google.com>
Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927461}
2021-10-02 00:05:45 +00:00
Mohamed Heikal
0dd7b07d2b Remove version from bundletool filepath references in build
The bundletool jar path containing the version is listed in a few places
in the build system. Remove the version from the jar path (autoroller
cannot update all these places with the new version number). Also adds
the bundletool jar path as a input to a few actions to avoid stale
builds from cls just updating bundletool.

Change-Id: I41cbe7d45e9f31b64b7f3148687004aa2dbe48e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3166930
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927311}
2021-10-01 18:49:20 +00:00
Andrew Grieve
f0d97776cc android_dynamic_feature_modules.md: onDemand="false" splits are always installed
Bug: 1241142
Change-Id: Ifdc10fc26e05659012c5e292c4babf1589a5cb26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3104366
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Xing Liu <xingliu@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#913133}
2021-08-18 20:20:43 +00:00
Andrew Grieve
7e777abf7e Merge android_app_bundle.md into android_dynamic_feature_modules.md
These make more sense as one.

Change-Id: I3fa6e52fbbf3d2cd83f87dea066d814371761e7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3097706
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#912697}
2021-08-17 19:43:59 +00:00
Peter Wen
8bf82d4d21 Android: Remove unused play core version
This has been superceded by the android_deps version of play core.

Bug: 1220662
Binary-Size: Spurious increase due to compression artifacts.
Change-Id: Id88740444887221f54433a66fa2f1c2dce2b4a3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3085922
Commit-Queue: Peter Wen <wnwen@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#911901}
2021-08-13 22:03:54 +00:00
Mohamed Heikal
826b4d55ca Improve DFM docs
DFM docs do not actually work as is from the sample code. Added some
required deps.

Change-Id: I9b5a21ab15576a08e2aff704faaa9ae3d0941e9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2989052
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#896124}
2021-06-25 18:13:57 +00:00
Andrew Grieve
23c828d247 Small updates to size docs
* De-dupe some "why care" text between optimzation_advice.md
  and binary_size_explainer.md
* Replace @RemovableInRelease with BuildConfig.ENABLE_ASSERTS
* Link to DFM doc from optimizing java code

Change-Id: I4111da3b6e56ac5144b8b26c7e780ee788cf399f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2893903
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#882626}
2021-05-13 19:37:29 +00:00
Andrew Grieve
f6069feb98 android_dynamic_feature_modules.md: Expand on isolatedSplits
Change-Id: Ia771e8673629ce259c244dcc5b94ab16805e8192
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2857136
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#877560}
2021-04-29 18:29:17 +00:00
Matt Stark
1debb5de90 Remove disabling of pseudolocale translations where applicable
Previously, many packages marked their strings to not allow pseudolocale
translation for no particular reason (I suspect they were just copying
other packages).

BUG=chromium:1173812
TEST=Built chrome, ran it, and checked that it ran successfully with
pseudolocales, and that more strings were translated than before.

Change-Id: I95e3985b3f62eeaef49f9dc4bd090fcf27b3af85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2672626
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Auto-Submit: Matt Stark <msta@google.com>
Reviewed-by: Trevor  Perrier <perrier@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#854053}
2021-02-15 16:08:24 +00:00
Clark DuVall
bde689a623 Update docs with isolated splits dev guide
Bug: 1126301
Change-Id: I5ddc5533d1241fd6b2b6dc570dbcf311de52b73f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2685080
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#852318}
2021-02-09 20:00:53 +00:00
Henrique Nakashima
f5439f8b5a [Android] Update remaining references pointing to .grd in chrome/android
Replace in documentation, comments and a tool the old location:
    chrome/android/java/strings/android_chrome_strings.grd
with the new location:
    chrome/browser/ui/android/strings/android_chrome_strings.grd

Change-Id: I4751c5941ac689a2b5e6b6445a2e62266aa84d8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2654266
Reviewed-by: Theresa  <twellington@chromium.org>
Reviewed-by: Andrew Luo <aluo@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#848782}
2021-01-29 23:52:24 +00:00
Samuel Huang
6f5c7ddb8a [Bundles] Make bundle wrapper test scripts install '-m dev_ui' by default.
Bundle wrapper test scripts calls such as
  /out/Debug/bin/monochrome_public_bundle install
  /out/Debug/bin/trichrome_chrome_google_bundle run

use the '-m' flag to include DFMs. In particular, the switch for the
DevUI DFM is '-m dev_ui' (and '-f dev_ui' for fake install).

However, most developers who use these test scripts don't care about
this detail. This CL makes the DevUI DFM installed by default when
these build scripts are used, to simplify development. The master list
|default_modules_for_testing| is in chrome_bundle_tmpl.gni, and
currently on has "dev_ui".

To make it still possible to test install flows of DevUI DFM, this CL
also adds the new flag '--no-module' to exclude non-base DFMs that are
installed by default (currently only {dev_ui}). Fake installs, e.g.,
'-f dev_ui', also excludes the default install.

Bug: 1081812, 987040
Change-Id: Icf87515382cc6d0b3d52fc3fa1914c7a4830b6cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2197339
Reviewed-by: Egor Pasko <pasko@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#768784}
2020-05-14 17:10:52 +00:00
Henrique Nakashima
cfdcce334b Update DFM documentation with modularized directory structure
The example test_dummy is changed in
https://chromium-review.googlesource.com/c/chromium/src/+/2157772

Some paths were outdated, assuming the module and the feature were in
the same directory.

Bug: 1071976
Change-Id: I65763bdd8071f3317edafe3de38b344cf254a756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2165714
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#762541}
2020-04-24 22:19:36 +00:00
Adam Langley
891ea2bc4c docs/android_dynamic_feature_modules.md: update stale path.
Change-Id: I157f2b427d2f18d6687661bee941bc9e568d2530
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145559
Commit-Queue: Adam Langley <agl@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Adam Langley <agl@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758221}
2020-04-10 17:11:18 +00:00
Samuel Huang
3dc9fce82f [DFM] Add basic documentation on how to use native resources.
This CL adds basic background, caveats, and basic instructions on adding
native resources to a DFM, and updates docs and examples re.
|load_native_on_get_impl|.

TBR=yfriedman@chromium.org

Bug: 1048740
Change-Id: I0c7adc21df568ce3ffc8895c81141bbe1db1850c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2069845
Commit-Queue: Samuel Huang <huangs@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744718}
2020-02-26 18:09:57 +00:00
Christopher Grant
f649d289f9 Android: Update DFM markdown with latest native code guidance
Bug: None
Change-Id: I69df296a38cf8f082cff6e05b6fc5c81cce9da90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1991751
Commit-Queue: Christopher Grant <cjgrant@chromium.org>
Reviewed-by: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729959}
2020-01-09 22:56:08 +00:00
Natalie Chouinard
cbdc6dcc6d [Android] Update java_files build docs
Use of java_files is being deprecated in favor of sources.
Update documentation that still references java_files.

TBR=aluo,bialpio,dpranke,pasko

Bug: 1035082
Change-Id: Ibcab73a9d90e010cdffd3018d3fd238662945f97
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980981
Reviewed-by: Natalie Chouinard <chouinard@chromium.org>
Commit-Queue: Natalie Chouinard <chouinard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727284}
2019-12-24 00:02:35 +00:00
Peter Wen
577a6fe520 Android: Clarify DFM docs for updates
This came up in a mailing list discussion:
http://g/sampling-profiler-core/lzZlIlY5PLM/xLWKG5PEAQAJ

Once a DFM is installed by Play, it will be updated alongside Chrome. A
separate reinstall will not be necessary on every app update.

Bug: None
Change-Id: I7d839b2161e72cb81c77796336918ede1b0e7f75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1963094
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723998}
2019-12-11 22:02:05 +00:00
Tibor Goldschwendt
f430b2783f Update //docs/android_dynamic_feature_modules.md
Change-Id: I5bc9d4c7de8d6078e50919fac14660832a19f2f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1903723
Reviewed-by: Christopher Grant <cjgrant@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718756}
2019-11-25 19:19:41 +00:00
Fred Mello
2623e05c25 Android: Refactor Module Installer for Testability
The intrinsic dependencies encountered along the way made it difficult
(less effective) to break up this CL into multiple smaller CLs
(apologies to the reviewers in advance).

To simplify its understanding, please refer to the following doc:
https://docs.google.com/document/d/1ClZglFQroV53zSYEGIZ7yca8KIsPHGBmzMCbtreu5lg

The following are the major points to review:
- refactoring of the infra into builder, installer, logger, observer, util
- new design (IoC driven) for installers to enable for easy testability
- new design for emitted modules (cross-package communication)

Out-of-scope (following CLs):
- removal of bytecode processing for third-party activities (no longer needed)
- move code from ModuleInstallerConfig.java into BuildConfig.java
- unit tests for the remaining module_installer classes

Testing: this change was verified with vr, ar, autofill_assistant, dev_ui,
and test_dummy modules. It was tested with both -m and -f command line args.

Bug: 1005802
Change-Id: Icf357c06c4b71a96ed9fa0584f6322d6dc6143d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1813520
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Fred Mello <fredmello@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702165}
2019-10-02 20:18:04 +00:00
Tibor Goldschwendt
b5fc3b941f Autogenerate resource package IDs of app bundle modules
This simplifies instantiating new feature modules.

Bug: 950056
Change-Id: Ic06aef2f99d9c08fe23c6df202948f72bba87593
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804275
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Reviewed-by: Eric Stevenson <estevenson@chromium.org>
Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697010}
2019-09-17 00:15:08 +00:00
Ben Mason
e571ea5a2e Enable dist fusing for all feature modules. (reland x 2)
This reverts commit 932dfd175c.

Reason for revert: Dex fusing has been fixed in bundletool and
a new version has been rolled: crrev.com/c/1789178

Original change's description:
> Revert "Enable dist fusing for all feature modules. (reland)"
> 
> This reverts commit 78fac991fc.
> 
> Reason for revert: Breaking some internal builders. Will reland once they are no longer building these targets.
> 
> Original change's description:
> > Enable dist fusing for all feature modules. (reland)
> > 
> > Fixed: I have disabled building of the system image in next-* builds
> > so there should no longer be an issue. next-* builds can be re-enabled
> > when bundletool is updated.
> > 
> > This reverts commit 7c77403da7.
> > 
> > Original change's description:
> > > Revert "Enable dist fusing for all feature modules."
> > > 
> > > This reverts commit 27ca1df76a.
> > > 
> > > Reason for revert: This CL causes an official build failure
> > > https://crbug.com/996658
> > > 
> > > Original change's description:
> > > > Enable dist fusing for all feature modules.
> > > > 
> > > > Change-Id: I66848fec159450a6d531e0af3f867988aa8b148f
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763431
> > > > Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
> > > > Commit-Queue: Ben Mason <benmason@chromium.org>
> > > > Cr-Commit-Position: refs/heads/master@{#689075}
> > > 
> > > TBR=tiborg@chromium.org,benmason@chromium.org
> > > 
> > > Change-Id: Ib696df42847a54c1257fae41ecb544df40f47e75
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764159
> > > Reviewed-by: Alex Ilin <alexilin@chromium.org>
> > > Commit-Queue: Alex Ilin <alexilin@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#689454}
> > 
> > TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org
> > 
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> > 
> > Change-Id: Id4687e7980b238cdbea04a1c8921b57a974f7cd0
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768946
> > Reviewed-by: Ben Mason <benmason@chromium.org>
> > Commit-Queue: Ben Mason <benmason@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#689947}
> 
> TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org
> 
> # Not skipping CQ checks because original CL landed > 1 day ago.
> 
> Change-Id: Ib1558378a9b2a12b7f0260a04eeb1fbe4d1330b1
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773836
> Reviewed-by: Ben Mason <benmason@chromium.org>
> Commit-Queue: Ben Mason <benmason@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#690995}

TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I5f5e2aa67eebca73b2109116b4d1beba82755d55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789826
Reviewed-by: Ben Mason <benmason@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694329}
2019-09-06 18:29:37 +00:00
Eric Stevenson
8c9ab26bb2 Modules: Add initial docs for JNI use in DFMs.
Bug: 995405
Change-Id: I3a82aed914760f2bc7076ae7710daac23e3f1bfd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1776484
Reviewed-by: Christopher Grant <cjgrant@chromium.org>
Commit-Queue: Eric Stevenson <estevenson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692070}
2019-08-30 15:44:40 +00:00
Ben Mason
932dfd175c Revert "Enable dist fusing for all feature modules. (reland)"
This reverts commit 78fac991fc.

Reason for revert: Breaking some internal builders. Will reland once they are no longer building these targets.

Original change's description:
> Enable dist fusing for all feature modules. (reland)
> 
> Fixed: I have disabled building of the system image in next-* builds
> so there should no longer be an issue. next-* builds can be re-enabled
> when bundletool is updated.
> 
> This reverts commit 7c77403da7.
> 
> Original change's description:
> > Revert "Enable dist fusing for all feature modules."
> > 
> > This reverts commit 27ca1df76a.
> > 
> > Reason for revert: This CL causes an official build failure
> > https://crbug.com/996658
> > 
> > Original change's description:
> > > Enable dist fusing for all feature modules.
> > > 
> > > Change-Id: I66848fec159450a6d531e0af3f867988aa8b148f
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763431
> > > Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
> > > Commit-Queue: Ben Mason <benmason@chromium.org>
> > > Cr-Commit-Position: refs/heads/master@{#689075}
> > 
> > TBR=tiborg@chromium.org,benmason@chromium.org
> > 
> > Change-Id: Ib696df42847a54c1257fae41ecb544df40f47e75
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764159
> > Reviewed-by: Alex Ilin <alexilin@chromium.org>
> > Commit-Queue: Alex Ilin <alexilin@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#689454}
> 
> TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org
> 
> # Not skipping CQ checks because original CL landed > 1 day ago.
> 
> Change-Id: Id4687e7980b238cdbea04a1c8921b57a974f7cd0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768946
> Reviewed-by: Ben Mason <benmason@chromium.org>
> Commit-Queue: Ben Mason <benmason@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#689947}

TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: Ib1558378a9b2a12b7f0260a04eeb1fbe4d1330b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773836
Reviewed-by: Ben Mason <benmason@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690995}
2019-08-28 02:19:27 +00:00
Ben Mason
78fac991fc Enable dist fusing for all feature modules. (reland)
Fixed: I have disabled building of the system image in next-* builds
so there should no longer be an issue. next-* builds can be re-enabled
when bundletool is updated.

This reverts commit 7c77403da7.

Original change's description:
> Revert "Enable dist fusing for all feature modules."
> 
> This reverts commit 27ca1df76a.
> 
> Reason for revert: This CL causes an official build failure
> https://crbug.com/996658
> 
> Original change's description:
> > Enable dist fusing for all feature modules.
> > 
> > Change-Id: I66848fec159450a6d531e0af3f867988aa8b148f
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763431
> > Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
> > Commit-Queue: Ben Mason <benmason@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#689075}
> 
> TBR=tiborg@chromium.org,benmason@chromium.org
> 
> Change-Id: Ib696df42847a54c1257fae41ecb544df40f47e75
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764159
> Reviewed-by: Alex Ilin <alexilin@chromium.org>
> Commit-Queue: Alex Ilin <alexilin@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#689454}

TBR=alexilin@chromium.org,tiborg@chromium.org,benmason@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: Id4687e7980b238cdbea04a1c8921b57a974f7cd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768946
Reviewed-by: Ben Mason <benmason@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689947}
2019-08-23 16:13:24 +00:00