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

Issue 1181953002: Load non-locale .pak files directly from the .apk on Android (rather than extracting on start-up). (Closed)

Created:
5 years, 6 months ago by agrieve
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, gunsch+watch_chromium.org, jam, jbudorick+watch_chromium.org, jochen+watch_chromium.org, klundberg+watch_chromium.org, lcwu+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@raw-paks
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Load non-locale .pak files directly from the .apk on Android (rather than extracting on start-up). BUG=394502 Committed: https://crrev.com/05398f5f735ac47b070f7c6897b4d25a1aae8ca9 Cr-Commit-Position: refs/heads/master@{#335964}

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : self code review #

Total comments: 2

Patch Set 4 : fix unused LoadMainAndroidPackFile #

Total comments: 16

Patch Set 5 : ifdef the entire method #

Patch Set 6 : yfriedman review comments #

Total comments: 6

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : fix tests1 #

Patch Set 10 : rebase2 #

Patch Set 11 : Fix content_browsertests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -174 lines) Patch
M base/android/java/src/org/chromium/base/ResourceExtractor.java View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M build/android/gyp/locale_pak_resources.py View 1 4 chunks +15 lines, -8 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/ChromeMobileApplication.java View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -5 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellApplication.java View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -24 lines 0 comments Download
M chromecast/app/cast_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +26 lines, -8 lines 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java View 2 chunks +1 line, -4 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -13 lines 0 comments Download
M content/browser/battery_status/battery_monitor_integration_browsertest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 1 chunk +9 lines, -3 lines 0 comments Download
M content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java View 2 chunks +1 line, -4 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java View 2 chunks +1 line, -4 lines 0 comments Download
M content/shell/app/shell_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +36 lines, -27 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 2 3 4 1 chunk +9 lines, -3 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 3 chunks +19 lines, -22 lines 0 comments Download
M testing/android/native_test/java/src/org/chromium/native_test/NativeUnitTestActivity.java View 1 2 chunks +0 lines, -6 lines 0 comments Download
M ui/base/resource/resource_bundle_android.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle_android.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +70 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (14 generated)
agrieve
gunsch@chromium.org: Please review changes in chromecast/ sadrul@chromium.org: Please review changes in ui/ cjhopman@chromium.org: Please review ...
5 years, 6 months ago (2015-06-16 18:30:08 UTC) #2
gunsch
chromecast/ lgtm, though it does feel like a lot of common content embedder boilerplate :( ...
5 years, 6 months ago (2015-06-16 20:27:31 UTC) #3
agrieve
https://codereview.chromium.org/1181953002/diff/40001/ui/base/resource/resource_bundle_android.h File ui/base/resource/resource_bundle_android.h (right): https://codereview.chromium.org/1181953002/diff/40001/ui/base/resource/resource_bundle_android.h#newcode18 ui/base/resource/resource_bundle_android.h:18: UI_BASE_EXPORT void LoadMainAndroidPackFile(); On 2015/06/16 20:27:31, gunsch wrote: > ...
5 years, 6 months ago (2015-06-17 01:48:02 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1181953002/diff/60001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/1181953002/diff/60001/content/public/browser/content_browser_client.h#newcode626 content/public/browser/content_browser_client.h:626: #if defined(OS_ANDROID) please ifdef the entire method, not just ...
5 years, 6 months ago (2015-06-17 08:47:54 UTC) #5
agrieve
On 2015/06/16 20:27:31, gunsch wrote: > chromecast/ lgtm, though it does feel like a lot ...
5 years, 6 months ago (2015-06-17 13:43:43 UTC) #6
Yaron
https://codereview.chromium.org/1181953002/diff/60001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (left): https://codereview.chromium.org/1181953002/diff/60001/chrome/app/chrome_main_delegate.cc#oldcode748 chrome/app/chrome_main_delegate.cc:748: CHECK(locale_pak_fd != -1); why are the CHECKs removed? https://codereview.chromium.org/1181953002/diff/60001/components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java ...
5 years, 6 months ago (2015-06-17 14:12:29 UTC) #7
agrieve
https://codereview.chromium.org/1181953002/diff/60001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/1181953002/diff/60001/content/public/browser/content_browser_client.h#newcode626 content/public/browser/content_browser_client.h:626: #if defined(OS_ANDROID) On 2015/06/17 08:47:54, jochen wrote: > please ...
5 years, 6 months ago (2015-06-17 14:25:31 UTC) #8
agrieve
https://codereview.chromium.org/1181953002/diff/60001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (left): https://codereview.chromium.org/1181953002/diff/60001/chrome/app/chrome_main_delegate.cc#oldcode748 chrome/app/chrome_main_delegate.cc:748: CHECK(locale_pak_fd != -1); On 2015/06/17 14:12:28, Yaron wrote: > ...
5 years, 6 months ago (2015-06-17 14:35:40 UTC) #9
cjhopman
https://codereview.chromium.org/1181953002/diff/100001/build/android/gyp/locale_pak_resources.py File build/android/gyp/locale_pak_resources.py (right): https://codereview.chromium.org/1181953002/diff/100001/build/android/gyp/locale_pak_resources.py#newcode36 build/android/gyp/locale_pak_resources.py:36: return name.replace('-', '_').replace('.pak', '.lpak').lower() What do you think of ...
5 years, 6 months ago (2015-06-17 21:47:50 UTC) #10
agrieve
https://codereview.chromium.org/1181953002/diff/100001/build/android/gyp/locale_pak_resources.py File build/android/gyp/locale_pak_resources.py (right): https://codereview.chromium.org/1181953002/diff/100001/build/android/gyp/locale_pak_resources.py#newcode36 build/android/gyp/locale_pak_resources.py:36: return name.replace('-', '_').replace('.pak', '.lpak').lower() On 2015/06/17 21:47:50, cjhopman wrote: ...
5 years, 6 months ago (2015-06-18 15:50:41 UTC) #11
Yaron
lgtm
5 years, 6 months ago (2015-06-19 17:33:00 UTC) #12
cjhopman
lgtm
5 years, 6 months ago (2015-06-19 22:58:41 UTC) #13
jochen (gone - plz use gerrit)
lgtm
5 years, 6 months ago (2015-06-22 08:37:30 UTC) #14
sadrul
https://codereview.chromium.org/1181953002/diff/100001/ui/base/resource/resource_bundle_android.cc File ui/base/resource/resource_bundle_android.cc (right): https://codereview.chromium.org/1181953002/diff/100001/ui/base/resource/resource_bundle_android.cc#newcode20 ui/base/resource/resource_bundle_android.cc:20: base::MemoryMappedFile::Region g_resources_pack_region; Does this add a couple of new ...
5 years, 6 months ago (2015-06-22 20:35:04 UTC) #15
agrieve
https://codereview.chromium.org/1181953002/diff/100001/ui/base/resource/resource_bundle_android.cc File ui/base/resource/resource_bundle_android.cc (right): https://codereview.chromium.org/1181953002/diff/100001/ui/base/resource/resource_bundle_android.cc#newcode20 ui/base/resource/resource_bundle_android.cc:20: base::MemoryMappedFile::Region g_resources_pack_region; On 2015/06/22 20:35:03, sadrul (OOO until Jun.22) ...
5 years, 6 months ago (2015-06-22 23:53:33 UTC) #16
sadrul
On 2015/06/22 23:53:33, agrieve wrote: > https://codereview.chromium.org/1181953002/diff/100001/ui/base/resource/resource_bundle_android.cc > File ui/base/resource/resource_bundle_android.cc (right): > > https://codereview.chromium.org/1181953002/diff/100001/ui/base/resource/resource_bundle_android.cc#newcode20 > ...
5 years, 6 months ago (2015-06-23 08:20:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181953002/100001
5 years, 6 months ago (2015-06-23 13:55:00 UTC) #20
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-23 13:57:45 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181953002/140001
5 years, 6 months ago (2015-06-23 15:20:53 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/23319)
5 years, 6 months ago (2015-06-23 15:46:49 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181953002/180001
5 years, 6 months ago (2015-06-23 23:57:03 UTC) #30
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/37204)
5 years, 6 months ago (2015-06-24 02:40:55 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181953002/180001
5 years, 6 months ago (2015-06-24 13:44:16 UTC) #34
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/37371)
5 years, 6 months ago (2015-06-24 16:21:50 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181953002/200001
5 years, 6 months ago (2015-06-24 17:53:13 UTC) #39
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 6 months ago (2015-06-24 18:59:10 UTC) #40
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 19:00:38 UTC) #41
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/05398f5f735ac47b070f7c6897b4d25a1aae8ca9
Cr-Commit-Position: refs/heads/master@{#335964}

Powered by Google App Engine
This is Rietveld 408576698