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

Issue 2011613003: Upstream: Extract "WebAPK service" implementation from Chrome APK (Closed)

Created:
4 years, 6 months ago by pkotwicz
Modified:
4 years, 6 months ago
Reviewers:
Xi Han, Peter Wen, gone
CC:
chromium-reviews, Yaron
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Upstream: Extract "WebAPK service" implementation from Chrome APK Ideally as much WebAPK code as possible can be updated without a new WebAPK being downloaded from the Chrome server. This CL makes the WebAPK extract a dex with the "WebAPK service" implementation from the Chrome APK and use the extracted dex via reflection. BUG=609122 Committed: https://crrev.com/fdc0ccb04b6572f4b25087ec29874bdc25657fff Cr-Commit-Position: refs/heads/master@{#396645}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -4 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/DeferredStartupHandler.java View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/webapk/libs/common/BUILD.gn View 1 chunk +4 lines, -1 line 0 comments Download
A chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/android/webapk/libs/runtime_library/BUILD.gn View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/android/webapk/shell_apk/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java View 1 2 1 chunk +71 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
pkotwicz
Xi can you please take a look? This CL depends on https://codereview.chromium.org/2006703004 which adds FileUtils#extractAsset()
4 years, 6 months ago (2016-05-25 01:56:05 UTC) #3
Xi Han
https://codereview.chromium.org/2011613003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java (right): https://codereview.chromium.org/2011613003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java#newcode43 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java:43: if (preferences.getBoolean(TRIED_EXTRACTING_DEX_PREF, false)) { Please move the comments in ...
4 years, 6 months ago (2016-05-25 15:36:13 UTC) #5
pkotwicz
Xi can you please take another look? https://codereview.chromium.org/2011613003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java (right): https://codereview.chromium.org/2011613003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java#newcode43 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java:43: if (preferences.getBoolean(TRIED_EXTRACTING_DEX_PREF, ...
4 years, 6 months ago (2016-05-25 17:16:42 UTC) #7
Xi Han
lgtm, and I would like to see the updates after adding the WebAPK versioning part ...
4 years, 6 months ago (2016-05-25 17:24:05 UTC) #8
pkotwicz
dfalcantara@ for changes to chrome/android/java
4 years, 6 months ago (2016-05-25 18:21:08 UTC) #10
gone
lgtm % checking with wnwen about the Application context. I don't understand the ClassLoader stuff ...
4 years, 6 months ago (2016-05-25 21:11:02 UTC) #11
pkotwicz
wnwen@ can you please take a look at the use of ContextUtils in WebApkVersionManager.java https://codereview.chromium.org/2011613003/diff/60001/chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java ...
4 years, 6 months ago (2016-05-26 01:11:42 UTC) #14
Peter Wen
lgtm, ContextUtils is already set up when DeferredHandler runs. https://codereview.chromium.org/2011613003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java (right): https://codereview.chromium.org/2011613003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java#newcode40 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java:40: ...
4 years, 6 months ago (2016-05-26 15:19:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011613003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2011613003/160001
4 years, 6 months ago (2016-05-28 17:20:29 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years, 6 months ago (2016-05-28 18:35:31 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-05-28 18:36:57 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fdc0ccb04b6572f4b25087ec29874bdc25657fff
Cr-Commit-Position: refs/heads/master@{#396645}

Powered by Google App Engine
This is Rietveld 408576698