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

Issue 402603006: [android_webview] Do not extract webviewchromium.pak (Closed)

Created:
6 years, 5 months ago by Primiano Tucci (use gerrit)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, ilevy-cc_chromium.org, android-webview-reviews_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@awassets
Project:
chromium
Visibility:
Public.

Description

[android_webview] Do not extract webviewchromium.pak - Change the android_webview_apk gyp files to include the en-US.pak file in the apk, which was erroneously missing. - Add the do_not_compress gyp plumbing to store and zipalign paks in the apk (only for the android_webview_apk target). - Stop decompressing pak files in the android webview shell apk. - Change aw_browser_main_parts.cc to take advantage of the new AwAssets and DataPack/ResourceBundle *FromRegion methods (mmap from the apk). - Add temporary workaround which loads always the en-US.pak locale, in lack of a proper refactoring of i10n_utils and ResourceBundle. BUG=394502 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286258

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add fallback path + gyp plumbing #

Total comments: 1

Patch Set 3 : WIP on US pakfiles #

Total comments: 7

Patch Set 4 : Fallback mmap of en-US.apk + gyp changes for en-US #

Total comments: 1

Patch Set 5 : Fix pakfile source path #

Total comments: 2

Patch Set 6 : Use only InitSharedInstanceWithPakFileRegion and + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -22 lines) Patch
M android_webview/android_webview.gyp View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M android_webview/android_webview_tests.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/aw_browser_main_parts.cc View 1 2 3 4 5 3 chunks +52 lines, -8 lines 0 comments Download
M android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M build/android/gyp/package_resources.py View 1 2 chunks +6 lines, -0 lines 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/shell/app/shell_main_delegate.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Primiano Tucci (use gerrit)
Aaaand, this is the missing piece.
6 years, 5 months ago (2014-07-18 01:40:19 UTC) #1
mkosiba (inactive)
https://codereview.chromium.org/402603006/diff/1/android_webview/browser/aw_browser_main_parts.cc File android_webview/browser/aw_browser_main_parts.cc (right): https://codereview.chromium.org/402603006/diff/1/android_webview/browser/aw_browser_main_parts.cc#newcode66 android_webview/browser/aw_browser_main_parts.cc:66: // ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath( forgot to remove?
6 years, 5 months ago (2014-07-18 05:54:22 UTC) #2
benm (inactive)
So once we land this, we will always be trying to load webviewchromium.pak from the ...
6 years, 5 months ago (2014-07-18 15:04:36 UTC) #3
Torne
Yeah, we will need this to fall back for now otherwise android_aosp will definitely break.
6 years, 5 months ago (2014-07-18 16:13:30 UTC) #4
Primiano Tucci (use gerrit)
I added the fallback + the gyp plumbing to skip pak compression only on our ...
6 years, 5 months ago (2014-07-18 19:01:04 UTC) #5
benm (inactive)
https://codereview.chromium.org/402603006/diff/60001/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java File android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java (right): https://codereview.chromium.org/402603006/diff/60001/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java#newcode25 android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java:25: "en-US.pak", "icudtl.dat" As discussed offline; I think that if ...
6 years, 5 months ago (2014-07-18 21:10:22 UTC) #6
benm (inactive)
On 2014/07/18 21:10:22, benm wrote: > https://codereview.chromium.org/402603006/diff/60001/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java > File > android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java > (right): > > ...
6 years, 5 months ago (2014-07-20 16:32:35 UTC) #7
mkosiba (inactive)
lgtm https://codereview.chromium.org/402603006/diff/80001/android_webview/browser/aw_browser_main_parts.cc File android_webview/browser/aw_browser_main_parts.cc (right): https://codereview.chromium.org/402603006/diff/80001/android_webview/browser/aw_browser_main_parts.cc#newcode59 android_webview/browser/aw_browser_main_parts.cc:59: VLOG(0) << "Loading " << locale_pak_file << " ...
6 years, 5 months ago (2014-07-21 14:20:59 UTC) #8
benm (inactive)
https://codereview.chromium.org/402603006/diff/80001/android_webview/browser/aw_browser_main_parts.cc File android_webview/browser/aw_browser_main_parts.cc (right): https://codereview.chromium.org/402603006/diff/80001/android_webview/browser/aw_browser_main_parts.cc#newcode64 android_webview/browser/aw_browser_main_parts.cc:64: } else { Long term, yes we should remove ...
6 years, 5 months ago (2014-07-21 14:38:55 UTC) #9
Primiano Tucci (use gerrit)
On 2014/07/20 16:32:35, benm wrote: > On 2014/07/18 21:10:22, benm wrote: > > > https://codereview.chromium.org/402603006/diff/60001/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java ...
6 years, 5 months ago (2014-07-21 15:21:33 UTC) #10
Primiano Tucci (use gerrit)
I reworked the CL to deal with the locale. More details in the new commit ...
6 years, 5 months ago (2014-07-21 17:20:03 UTC) #11
benm (inactive)
seems like a reasonable compromise for now. l-gtm when it compiles ;) https://codereview.chromium.org/402603006/diff/100001/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h ...
6 years, 5 months ago (2014-07-21 17:55:52 UTC) #12
Primiano Tucci (use gerrit)
> https://codereview.chromium.org/402603006/diff/100001/ui/base/resource/resource_bundle.h#newcode144 > ui/base/resource/resource_bundle.h:144: const base::File::Region& region, > needs a fwd decl for Region. I ...
6 years, 5 months ago (2014-07-21 22:29:55 UTC) #13
Primiano Tucci (use gerrit)
> I was wondering why the heck it didn't happen locally, it took me a ...
6 years, 5 months ago (2014-07-21 22:49:13 UTC) #14
benm (inactive)
+tony for ui/base/resource Hi tony, we are trying to move very fast with this change, ...
6 years, 4 months ago (2014-07-28 18:18:28 UTC) #15
darin (slow to review)
tony@ -> sky@
6 years, 4 months ago (2014-07-28 22:01:58 UTC) #16
sky
https://codereview.chromium.org/402603006/diff/120001/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): https://codereview.chromium.org/402603006/diff/120001/ui/base/resource/resource_bundle.h#newcode138 ui/base/resource/resource_bundle.h:138: static void InitSharedInstanceWithPakFile(base::File file, InitSharedInstanceWithPakFile is only called in ...
6 years, 4 months ago (2014-07-28 22:09:57 UTC) #17
Primiano Tucci (use gerrit)
https://codereview.chromium.org/402603006/diff/120001/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): https://codereview.chromium.org/402603006/diff/120001/ui/base/resource/resource_bundle.h#newcode138 ui/base/resource/resource_bundle.h:138: static void InitSharedInstanceWithPakFile(base::File file, On 2014/07/28 22:09:57, sky wrote: ...
6 years, 4 months ago (2014-07-29 11:07:36 UTC) #18
Torne
lgtm
6 years, 4 months ago (2014-07-29 12:05:41 UTC) #19
Ben Goodger (Google)
lgtm
6 years, 4 months ago (2014-07-29 16:15:56 UTC) #20
tony
Sorry, I was out of the office yesterday. ui/base/resource LGTM.
6 years, 4 months ago (2014-07-29 16:22:12 UTC) #21
Primiano Tucci (use gerrit)
The CQ bit was checked by primiano@chromium.org
6 years, 4 months ago (2014-07-29 16:52:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/402603006/160001
6 years, 4 months ago (2014-07-29 16:53:20 UTC) #23
sky
LGTM
6 years, 4 months ago (2014-07-29 17:53:55 UTC) #24
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 18:11:36 UTC) #25
Message was sent while issue was closed.
Change committed as 286258

Powered by Google App Engine
This is Rietveld 408576698