|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by agrieve Modified:
4 years, 3 months ago CC:
chromium-reviews, alemate+watch_chromium.org, dtseng+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, android-webview-reviews_chromium.org, arv+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionCreate Monochrome-specific repack() targets
This allows Monochrome.apk's .pak files to properly contain the
union of Chrome and WebView's .pak files. It also allows it to use
a target-specific resource whitelist.
This change applies to resources.pak and chrome_100_percent.pak. A
change to language .pak files will come as a follow-up.
BUG=641032, 634358
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/a5d84d504167c0fb7452dec22c7f024f8fcde072
Cr-Commit-Position: refs/heads/master@{#419960}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Move rules to //chrome/android. Refactor aw_resources.pak #
Total comments: 4
Patch Set 3 : Revert android_webview/BUILD.gn #
Total comments: 2
Patch Set 4 : remove GYP comment #Patch Set 5 : rebase #Patch Set 6 : fix arm64 #
Depends on Patchset: Messages
Total messages: 34 (17 generated)
Description was changed from ========== Create Monochrome-specific repack() targets While it should generally be true that Monochrome's resources are the same as ChromePublic's, if it ever becomes the case that WebView uses a resource that Chrome doesn't, Monochrome would fail to have the resource at runtime because it's using ChromePublic's resource whitelist rather than its own. This change defines repack() targets that are monochrome-specific in order to ensure that resource whitelists never cause a resource to be stripped that Monochrome actually uses. This change applies to resources.pak and chrome_100_percent.pak. A change to language .pak files will come as a follow-up. BUG=641032 ========== to ========== Create Monochrome-specific repack() targets While it should generally be true that Monochrome's resources are the same as ChromePublic's, if it ever becomes the case that WebView uses a resource that Chrome doesn't, Monochrome would fail to have the resource at runtime because it's using ChromePublic's resource whitelist rather than its own. This change defines repack() targets that are monochrome-specific in order to ensure that resource whitelists never cause a resource to be stripped that Monochrome actually uses. This change applies to resources.pak and chrome_100_percent.pak. A change to language .pak files will come as a follow-up. BUG=641032 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by agrieve@chromium.org to run a CQ dry run
agrieve@chromium.org changed reviewers: + michaelbai@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/09/20 01:33:32, agrieve wrote: Also note: I verified that the resources.pak and chrome_100_percent.pak file sizes are the same before & after this change. This means that as of now, webview does not use any resources from these pak files that chrome does not use as well.
I am sorry to say your assumption is not true, see my comment, it is probably critical for your patch. Another issue is the monochrome specific change in android_webview/BUILD.gn should be in chrome/android directory, because Monochrome is more like Chrome than WebView. https://codereview.chromium.org/2354803002/diff/1/chrome/chrome_paks.gni File chrome/chrome_paks.gni (left): https://codereview.chromium.org/2354803002/diff/1/chrome/chrome_paks.gni#oldc... chrome/chrome_paks.gni:189: deps += [ "//android_webview:generate_aw_resources" ] Here is bug see https://crbug.com/634358 , basically, aw_resources.pak is WebView specific and should be part of Chrome resources pack. Someone put here wrongly during my vacation, I were working on the fix, but didn't get time to continue, Do you think if you can move this out of chrome resources.pak in your patch? this is main difference between chrome and monochrome resources.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Create Monochrome-specific repack() targets While it should generally be true that Monochrome's resources are the same as ChromePublic's, if it ever becomes the case that WebView uses a resource that Chrome doesn't, Monochrome would fail to have the resource at runtime because it's using ChromePublic's resource whitelist rather than its own. This change defines repack() targets that are monochrome-specific in order to ensure that resource whitelists never cause a resource to be stripped that Monochrome actually uses. This change applies to resources.pak and chrome_100_percent.pak. A change to language .pak files will come as a follow-up. BUG=641032 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Create Monochrome-specific repack() targets This allows Monochrome.apk's .pak files to properly contain the union of Chrome and WebView's .pak files. It also allows it to use a target-specific resource whitelist. This change applies to resources.pak and chrome_100_percent.pak. A change to language .pak files will come as a follow-up. BUG=641032,634358 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
Thanks for the insights! Make the change more useful :P. I've moved to chrome/android and removed aw_resources.pak as you suggested. https://codereview.chromium.org/2354803002/diff/1/chrome/chrome_paks.gni File chrome/chrome_paks.gni (left): https://codereview.chromium.org/2354803002/diff/1/chrome/chrome_paks.gni#oldc... chrome/chrome_paks.gni:189: deps += [ "//android_webview:generate_aw_resources" ] On 2016/09/20 02:09:38, michaelbai wrote: > Here is bug see https://crbug.com/634358 , basically, aw_resources.pak is > WebView specific and should be part of Chrome resources pack. Someone put here > wrongly during my vacation, I were working on the fix, but didn't get time to > continue, Do you think if you can move this out of chrome resources.pak in your > patch? > > this is main difference between chrome and monochrome resources. Done.
LGTM with 2 comments https://codereview.chromium.org/2354803002/diff/20001/android_webview/BUILD.gn File android_webview/BUILD.gn (left): https://codereview.chromium.org/2354803002/diff/20001/android_webview/BUILD.g... android_webview/BUILD.gn:9: import("//tools/resources/generate_resource_whitelist.gni") Is this one still needed by Standalone webview? https://codereview.chromium.org/2354803002/diff/20001/chrome/chrome_paks.gni File chrome/chrome_paks.gni (right): https://codereview.chromium.org/2354803002/diff/20001/chrome/chrome_paks.gni#... chrome/chrome_paks.gni:219: chrome_repack_locales("${target_name}_locales") { Monochrome has its own set of locales, currently implemented by alternative_locale_resource, it could be implemented in this way, but don't need to be done in this patch.
https://codereview.chromium.org/2354803002/diff/20001/android_webview/BUILD.gn File android_webview/BUILD.gn (left): https://codereview.chromium.org/2354803002/diff/20001/android_webview/BUILD.g... android_webview/BUILD.gn:9: import("//tools/resources/generate_resource_whitelist.gni") On 2016/09/20 18:49:42, michaelbai wrote: > Is this one still needed by Standalone webview? Done. https://codereview.chromium.org/2354803002/diff/20001/chrome/chrome_paks.gni File chrome/chrome_paks.gni (right): https://codereview.chromium.org/2354803002/diff/20001/chrome/chrome_paks.gni#... chrome/chrome_paks.gni:219: chrome_repack_locales("${target_name}_locales") { On 2016/09/20 18:49:43, michaelbai wrote: > Monochrome has its own set of locales, currently implemented by > alternative_locale_resource, it could be implemented in this way, but don't need > to be done in this patch. Acknowledged. I'll look at doing this in a follow-up.
agrieve@chromium.org changed reviewers: + brettw@chromium.org
brettw@ for other resource changes.
lgtm https://codereview.chromium.org/2354803002/diff/40001/chrome/BUILD.gn File chrome/BUILD.gn (right): https://codereview.chromium.org/2354803002/diff/40001/chrome/BUILD.gn#newcode... chrome/BUILD.gn:1351: # GYP version: chrome/chrome_resources.gyp:browser_tests_pak We shouldn't be adding these GYP annotations any more (I've been trying to delete them).
https://codereview.chromium.org/2354803002/diff/40001/chrome/BUILD.gn File chrome/BUILD.gn (right): https://codereview.chromium.org/2354803002/diff/40001/chrome/BUILD.gn#newcode... chrome/BUILD.gn:1351: # GYP version: chrome/chrome_resources.gyp:browser_tests_pak On 2016/09/20 19:21:32, brettw (ping on IM after 24h) wrote: > We shouldn't be adding these GYP annotations any more (I've been trying to > delete them). Done.
The CQ bit was checked by agrieve@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from michaelbai@chromium.org, brettw@chromium.org Link to the patchset: https://codereview.chromium.org/2354803002/#ps60001 (title: "remove GYP comment")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
The CQ bit was checked by agrieve@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by agrieve@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from michaelbai@chromium.org, brettw@chromium.org Link to the patchset: https://codereview.chromium.org/2354803002/#ps80001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Create Monochrome-specific repack() targets This allows Monochrome.apk's .pak files to properly contain the union of Chrome and WebView's .pak files. It also allows it to use a target-specific resource whitelist. This change applies to resources.pak and chrome_100_percent.pak. A change to language .pak files will come as a follow-up. BUG=641032,634358 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Create Monochrome-specific repack() targets This allows Monochrome.apk's .pak files to properly contain the union of Chrome and WebView's .pak files. It also allows it to use a target-specific resource whitelist. This change applies to resources.pak and chrome_100_percent.pak. A change to language .pak files will come as a follow-up. BUG=641032,634358 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Create Monochrome-specific repack() targets This allows Monochrome.apk's .pak files to properly contain the union of Chrome and WebView's .pak files. It also allows it to use a target-specific resource whitelist. This change applies to resources.pak and chrome_100_percent.pak. A change to language .pak files will come as a follow-up. BUG=641032,634358 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Create Monochrome-specific repack() targets This allows Monochrome.apk's .pak files to properly contain the union of Chrome and WebView's .pak files. It also allows it to use a target-specific resource whitelist. This change applies to resources.pak and chrome_100_percent.pak. A change to language .pak files will come as a follow-up. BUG=641032,634358 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/a5d84d504167c0fb7452dec22c7f024f8fcde072 Cr-Commit-Position: refs/heads/master@{#419960} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/a5d84d504167c0fb7452dec22c7f024f8fcde072 Cr-Commit-Position: refs/heads/master@{#419960}
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2353553004/ by lizeb@chromium.org. The reason for reverting is: Breaks ARM64 downstream bot (crbug.com/648878).. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
