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

Issue 2133923002: Simplify caller checking logic in WebApkServiceImpl (Closed)

Created:
4 years, 5 months ago by pkotwicz
Modified:
4 years, 5 months ago
Reviewers:
Robert Sesek, Yaron
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify caller checking logic in WebApkServiceImpl This CL passes the uid of the host browser instead of the package name of the host browser. This simplifies things because: - Several package names can have the same UID. - There is only one UID per package name. A UID is assigned to an app at install time. This CL also moves the WebApkServiceImplTests JUnit tests to instrumentation tests (The simplification in this CL would make the JUnit tests super boring). The instrumentation tests are useful. The behavior when an unauthorized caller tries to use the WebAPK service was different than I expected BUG=625448 Test=WebApkServiceImplTest.* R=sievers TBR=yfriedman (To get around the OWNERS checks for new DEPS files) Committed: https://crrev.com/9af31665e1d8a11e8cef9d1d6ebb8891c1239ad4 Cr-Commit-Position: refs/heads/master@{#405399}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Merge branch 'master' into sandbox_on_transact1 #

Patch Set 3 : Merge branch 'master' into sandbox_on_transact1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -155 lines) Patch
M chrome/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/javatests/AndroidManifest.xml View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/webapk/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/android/webapk/libs/runtime_library/BUILD.gn View 3 chunks +10 lines, -5 lines 0 comments Download
A + chrome/android/webapk/libs/runtime_library/javatests/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/webapk/libs/runtime_library/javatests/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImplTest.java View 1 1 chunk +133 lines, -0 lines 0 comments Download
D chrome/android/webapk/libs/runtime_library/junit/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
D chrome/android/webapk/libs/runtime_library/junit/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImplTest.java View 1 chunk +0 lines, -98 lines 0 comments Download
M chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java View 4 chunks +9 lines, -42 lines 0 comments Download
M chrome/android/webapk/shell_apk/javatests/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/android/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/android/javatests/src/org/chromium/chrome/test/webapk/TestWebApkServiceImplWrapper.java View 1 chunk +28 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.linux.json View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
pkotwicz
Yaron can you please take a look? This CL is now a prerequisite to https://codereview.chromium.org/2114293003/
4 years, 5 months ago (2016-07-09 03:46:15 UTC) #2
Yaron
https://codereview.chromium.org/2133923002/diff/1/chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java File chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java (right): https://codereview.chromium.org/2133923002/diff/1/chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java#newcode67 chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java:67: public static int getHostBrowserUid(Context context) { Hmm, why is ...
4 years, 5 months ago (2016-07-11 13:41:41 UTC) #3
pkotwicz
Yaron can you please take another look? https://codereview.chromium.org/2133923002/diff/1/chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java File chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java (right): https://codereview.chromium.org/2133923002/diff/1/chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java#newcode67 chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java:67: public static ...
4 years, 5 months ago (2016-07-11 13:49:59 UTC) #4
Yaron
lgtm https://codereview.chromium.org/2133923002/diff/1/chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java File chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java (right): https://codereview.chromium.org/2133923002/diff/1/chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java#newcode67 chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkUtils.java:67: public static int getHostBrowserUid(Context context) { On 2016/07/11 ...
4 years, 5 months ago (2016-07-12 03:58:43 UTC) #5
pkotwicz
rsesek@ can you please take a look at this CL from a security stand point?
4 years, 5 months ago (2016-07-12 15:27:45 UTC) #8
pkotwicz
rsesek@ can you please take a look at this CL from a security stand point?
4 years, 5 months ago (2016-07-12 15:27:46 UTC) #9
pkotwicz
rsesek@ Ping!
4 years, 5 months ago (2016-07-13 13:41:12 UTC) #10
Robert Sesek
In a WebAPK the Bundle provided to the WebApkServiceImpl is from the manifest, right? What ...
4 years, 5 months ago (2016-07-13 19:32:22 UTC) #11
pkotwicz
If this occurs WebApkServiceFactory needs to build a new WebApkServiceImpl. I know there isn't code ...
4 years, 5 months ago (2016-07-13 19:58:28 UTC) #12
Robert Sesek
lgtm
4 years, 5 months ago (2016-07-13 20:56:03 UTC) #13
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/2133923002/20001
4 years, 5 months ago (2016-07-13 22:10:16 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/217679)
4 years, 5 months ago (2016-07-13 22:21:45 UTC) #18
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/2133923002/40001
4 years, 5 months ago (2016-07-14 00:23:00 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-14 01:59:42 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 02:00:07 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 02:01:52 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9af31665e1d8a11e8cef9d1d6ebb8891c1239ad4
Cr-Commit-Position: refs/heads/master@{#405399}

Powered by Google App Engine
This is Rietveld 408576698