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

Issue 2890813002: Separate WebView's locale paks from Chrome's locale paks (Closed)

Created:
3 years, 7 months ago by F
Modified:
3 years, 7 months ago
Reviewers:
michaelbai, Nico, agrieve, Torne
CC:
chromium-reviews, android-webview-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate WebView's locale paks from Chrome's locale paks In order to reduce APK size, this CL separates WebView's locale paks from Chrome's locale paks, and compresses locale paks for all flavors of Chrome. Previously, Chrome and Chrome modern have their locale paks compressed, while their contemporary WebView is shipped as a standalone APK and has its own locale paks stored uncompressed. For Monochrome, WebView and Chrome share uncompressed locale paks. As a result, Monochrome locale paks take up lots of disk space unnecessarily. This CL changes WebView locale pak location for all WebViews, and compresses Chrome's locale paks in Monochrome. As a result, Monochrome now contains uncompressed WebView locale paks and compressed Chrome locale paks. Other resources are not affected. This greatly reduces locale paks' footprints on disk. Monochrome.apk shrinks by 2.6MB. A side effect for this CL is that Monochrome no longer supports several locales that have been unsupported by Chrome and Chrome modern but supported by WebViews. See crbug.com/687797 for more details. BUG=687797 Review-Url: https://codereview.chromium.org/2890813002 Cr-Commit-Position: refs/heads/master@{#472801} Committed: https://chromium.googlesource.com/chromium/src/+/b19aa78ac188365efe6b54c3889d67e9225b10d2

Patch Set 1 #

Patch Set 2 : remove unnecessary import #

Total comments: 4

Patch Set 3 : renaming "stored" #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -40 lines) Patch
M android_webview/BUILD.gn View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 5 chunks +5 lines, -9 lines 2 comments Download
M chrome/browser/chrome_browser_main_android.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/chrome_paks.gni View 3 chunks +24 lines, -22 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/ResourceBundle.java View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
F
Hi Andrew, PTAL. Thanks!
3 years, 7 months ago (2017-05-17 19:19:16 UTC) #7
agrieve
lgtm Can you also include the in the commit description the overall size savings (delta ...
3 years, 7 months ago (2017-05-17 19:29:45 UTC) #11
F
Thanks Andrew! PTAL Hi Michael, PTAL. Thanks! https://codereview.chromium.org/2890813002/diff/40001/android_webview/BUILD.gn File android_webview/BUILD.gn (right): https://codereview.chromium.org/2890813002/diff/40001/android_webview/BUILD.gn#newcode119 android_webview/BUILD.gn:119: renaming_destinations += ...
3 years, 7 months ago (2017-05-17 19:45:22 UTC) #12
Torne
Am I correct in interpreting the effects of this CL as: 1) Standalone WebView APK's ...
3 years, 7 months ago (2017-05-17 20:48:52 UTC) #17
michaelbai
https://codereview.chromium.org/2890813002/diff/60001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (left): https://codereview.chromium.org/2890813002/diff/60001/chrome/android/BUILD.gn#oldcode605 chrome/android/BUILD.gn:605: "//v8:v8_external_startup_data_assets", what's this change for?
3 years, 7 months ago (2017-05-17 20:53:19 UTC) #18
F
Thanks Andrew, Michael, and Richard! PTAL Replying to torne@: All three points are correct :) ...
3 years, 7 months ago (2017-05-17 21:02:56 UTC) #19
michaelbai
lgtm Thanks
3 years, 7 months ago (2017-05-17 21:06:19 UTC) #20
Torne
LGTM also for the record; this is a pretty great saving!
3 years, 7 months ago (2017-05-17 21:09:54 UTC) #21
F
Hi Nico, PTAL. Thanks!
3 years, 7 months ago (2017-05-17 21:26:11 UTC) #23
Nico
stampy lgtm Torne, it'd be cool if you could reply on the bug that your ...
3 years, 7 months ago (2017-05-17 21:42:15 UTC) #24
Torne
On 2017/05/17 21:42:15, Nico wrote: > stampy lgtm > > Torne, it'd be cool if ...
3 years, 7 months ago (2017-05-17 22:43:53 UTC) #25
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/2890813002/60001
3 years, 7 months ago (2017-05-18 14:33:17 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:60001) as https://chromium.googlesource.com/chromium/src/+/b19aa78ac188365efe6b54c3889d67e9225b10d2
3 years, 7 months ago (2017-05-18 14:38:42 UTC) #33
estevenson
A revert of this CL (patchset #3 id:60001) has been created in https://codereview.chromium.org/2894763002/ by estevenson@chromium.org. ...
3 years, 7 months ago (2017-05-19 00:15:49 UTC) #34
F
3 years, 7 months ago (2017-05-19 00:24:49 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:60001) has been created in
https://codereview.chromium.org/2884343005/ by zpeng@chromium.org.

The reason for reverting is: creates different paks for 32bit & 64bit: see
crbug.com/724277.

Powered by Google App Engine
This is Rietveld 408576698