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

Issue 1187433006: Load language .pak files directly from the apk when using splits (Closed)

Created:
5 years, 6 months ago by agrieve
Modified:
5 years, 6 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@locale-res-or-file
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Load language .pak files directly from the apk when using splits Still store them compressed and extract on start-up for when not using splits, since all locales are included in the apk (would increase size by ~6megs). When using splits though, only the active language is shipped to the user, so storing them uncompressed and skipping extraction makes sense. This also changes from opening the pak file each time a child process is spawned to opening it once and caching the handle. BUG=394502, 490285 Committed: https://crrev.com/4153e51de1c23001defaf19ba58cd15996d1f844 Cr-Commit-Position: refs/heads/master@{#336330}

Patch Set 1 #

Total comments: 4

Patch Set 2 : update getter comment #

Patch Set 3 : was totally broken. #

Total comments: 2

Patch Set 4 : Delete unused getter #

Patch Set 5 : rebase #

Patch Set 6 : Fix ui_base_unittest failure (allow locale paks to be loaded multiple times) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -13 lines) Patch
M base/android/build_info.h View 2 chunks +5 lines, -0 lines 0 comments Download
M base/android/build_info.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/java/src/org/chromium/base/BuildInfo.java View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeMobileApplication.java View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 1 chunk +5 lines, -10 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle_android.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle_android.cc View 1 2 3 4 5 4 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
agrieve
sadrul@chromium.org: Please review changes in ui/ jochen@chromium.org: Please review changes in chrome/ yfriedman@chromium.org: Please review ...
5 years, 6 months ago (2015-06-18 17:58:25 UTC) #2
Yaron
https://codereview.chromium.org/1187433006/diff/1/chrome/browser/chrome_browser_main_android.cc File chrome/browser/chrome_browser_main_android.cc (right): https://codereview.chromium.org/1187433006/diff/1/chrome/browser/chrome_browser_main_android.cc#newcode64 chrome/browser/chrome_browser_main_android.cc:64: bool has_splits = base::android::BuildInfo::GetInstance()->has_apk_splits(); how'd you pick here? https://codereview.chromium.org/1187433006/diff/1/ui/base/resource/resource_bundle_android.h ...
5 years, 6 months ago (2015-06-18 20:45:44 UTC) #3
agrieve
https://codereview.chromium.org/1187433006/diff/1/chrome/browser/chrome_browser_main_android.cc File chrome/browser/chrome_browser_main_android.cc (right): https://codereview.chromium.org/1187433006/diff/1/chrome/browser/chrome_browser_main_android.cc#newcode64 chrome/browser/chrome_browser_main_android.cc:64: bool has_splits = base::android::BuildInfo::GetInstance()->has_apk_splits(); On 2015/06/18 20:45:43, Yaron wrote: ...
5 years, 6 months ago (2015-06-19 01:37:25 UTC) #4
jochen (gone - plz use gerrit)
chrome/browser lgtm
5 years, 6 months ago (2015-06-19 13:17:57 UTC) #5
Yaron
lgtm
5 years, 6 months ago (2015-06-19 15:04:42 UTC) #6
agrieve
On 2015/06/19 15:04:42, Yaron wrote: > lgtm Turns out this only worked because I had ...
5 years, 6 months ago (2015-06-19 18:09:33 UTC) #7
sadrul
https://codereview.chromium.org/1187433006/diff/40001/ui/base/resource/resource_bundle_android.h File ui/base/resource/resource_bundle_android.h (right): https://codereview.chromium.org/1187433006/diff/40001/ui/base/resource/resource_bundle_android.h#newcode37 ui/base/resource/resource_bundle_android.h:37: UI_BASE_EXPORT bool GetLocalePaksStoredInApk(); This doesn't seem to be actually ...
5 years, 6 months ago (2015-06-23 08:34:06 UTC) #8
agrieve
https://codereview.chromium.org/1187433006/diff/40001/ui/base/resource/resource_bundle_android.h File ui/base/resource/resource_bundle_android.h (right): https://codereview.chromium.org/1187433006/diff/40001/ui/base/resource/resource_bundle_android.h#newcode37 ui/base/resource/resource_bundle_android.h:37: UI_BASE_EXPORT bool GetLocalePaksStoredInApk(); On 2015/06/23 08:34:06, sadrul wrote: > ...
5 years, 6 months ago (2015-06-23 15:33:57 UTC) #9
sadrul
lgtm
5 years, 6 months ago (2015-06-23 15:46:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1187433006/80001
5 years, 6 months ago (2015-06-25 21:36:28 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/38204)
5 years, 6 months ago (2015-06-26 00:00:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1187433006/100001
5 years, 6 months ago (2015-06-26 02:06:36 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 6 months ago (2015-06-26 03:07:30 UTC) #19
commit-bot: I haz the power
5 years, 6 months ago (2015-06-26 03:08:16 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4153e51de1c23001defaf19ba58cd15996d1f844
Cr-Commit-Position: refs/heads/master@{#336330}

Powered by Google App Engine
This is Rietveld 408576698