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

Issue 2841193002: Implement privacy disclosure for an unbound webapk. (Closed)

Created:
3 years, 7 months ago by Yaron
Modified:
3 years, 6 months ago
Reviewers:
dominickn, pkotwicz, awdf
CC:
chromium-reviews, dominickn+watch_chromium.org, awdf+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, pkotwicz+watch_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org, zpeng+watch_chromium.org, srahim+watch_chromium.org, piotrs
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement privacy disclosure for an unbound webapk. Some WebApks can be run with different browser hosts. This CL adds a notification that the WebApk is using Chrome as a host and may share browsing data with the app. BUG=714738 Review-Url: https://codereview.chromium.org/2841193002 Cr-Commit-Position: refs/heads/master@{#475350} Committed: https://chromium.googlesource.com/chromium/src/+/88c8153ffb73869b07a17c3d804630e401c730fd

Patch Set 1 #

Total comments: 11

Patch Set 2 : Implement privacy disclosure for an unbound webapk. #

Patch Set 3 : Implement privacy disclosure for an unbound webapk. #

Total comments: 7

Patch Set 4 #

Total comments: 11

Patch Set 5 : fixes #

Patch Set 6 : fix test #

Total comments: 4

Patch Set 7 : findbug #

Total comments: 12

Patch Set 8 : awdf comments #

Total comments: 6

Patch Set 9 : awdf comments #

Total comments: 6

Patch Set 10 : pkotwicz comments #

Total comments: 2

Patch Set 11 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -33 lines) Patch
M chrome/android/java/AndroidManifest.xml View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java View 1 2 3 4 5 6 7 4 chunks +15 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUmaTracker.java View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilder.java View 1 2 3 4 5 6 7 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java View 1 2 3 4 5 6 7 8 9 10 4 chunks +40 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationService.java View 1 2 3 4 5 6 7 8 9 1 chunk +41 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java View 1 2 3 4 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 1 chunk +2 lines, -10 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationBuilderBaseTest.java View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java View 1 2 3 4 6 chunks +11 lines, -6 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 50 (22 generated)
Yaron
awdf: I know there's a lot of trickiness now with notifications so please let me ...
3 years, 7 months ago (2017-04-26 20:53:35 UTC) #2
pkotwicz
https://codereview.chromium.org/2841193002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java (right): https://codereview.chromium.org/2841193002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java#newcode83 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java:83: public static final String GROUP_WEBAPK = "WebApk"; Nit: Keep ...
3 years, 7 months ago (2017-04-27 19:04:26 UTC) #3
Yaron
Thanks removed the icon from status bar and I also moved the intent from the ...
3 years, 7 months ago (2017-04-28 20:31:28 UTC) #4
pkotwicz
Looks like WebApkDisclosureNotificationManager is missing from the CL
3 years, 7 months ago (2017-05-01 14:40:18 UTC) #5
Yaron
Also added back the new file :S https://codereview.chromium.org/2841193002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (right): https://codereview.chromium.org/2841193002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java#newcode126 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java:126: WebApkNotificationManager.showDisclosure(mWebappInfo); On ...
3 years, 7 months ago (2017-05-01 17:32:31 UTC) #6
awdf
lgtm % nit I think it's fine to send this notification to the Browser channel ...
3 years, 7 months ago (2017-05-02 12:33:35 UTC) #7
pkotwicz
https://codereview.chromium.org/2841193002/diff/40001/chrome/android/java/strings/android_chrome_strings.grd File chrome/android/java/strings/android_chrome_strings.grd (left): https://codereview.chromium.org/2841193002/diff/40001/chrome/android/java/strings/android_chrome_strings.grd#oldcode2856 chrome/android/java/strings/android_chrome_strings.grd:2856: <message name="IDS_WEBAPK_UNKNOWN_SOURCES_DIALOG_TITLE" desc="Title of dialog warning user that installation ...
3 years, 7 months ago (2017-05-02 17:03:09 UTC) #8
pkotwicz
- The notification looks wrong on Android N See https://drive.google.com/a/google.com/file/d/0B7EmxgaPYQTBcmVfejhtN2tVVU0/view?usp=sharing In particular the user has ...
3 years, 7 months ago (2017-05-02 18:03:29 UTC) #9
awdf
https://codereview.chromium.org/2841193002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java (right): https://codereview.chromium.org/2841193002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java#newcode17 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java:17: import org.chromium.chrome.browser.notifications.ChannelDefinitions; fyi i just hit 'submit' on this ...
3 years, 7 months ago (2017-05-04 15:49:30 UTC) #10
Yaron
Thanks for the heads-up! I've been blocked on getting back to this cause of something ...
3 years, 7 months ago (2017-05-04 15:52:58 UTC) #11
Yaron
+dominickn I still have one issue to resolve but was wondering what you think of ...
3 years, 7 months ago (2017-05-24 01:13:16 UTC) #13
dominickn
High level, webapps looks fine, modulo a couple of nits and the fix for the ...
3 years, 7 months ago (2017-05-24 01:24:36 UTC) #14
awdf
https://codereview.chromium.org/2841193002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java (right): https://codereview.chromium.org/2841193002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java#newcode150 chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java:150: if (mVisibility != Notification.VISIBILITY_SECRET) { maybe change this to ...
3 years, 7 months ago (2017-05-24 14:47:43 UTC) #15
Yaron
https://codereview.chromium.org/2841193002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java (right): https://codereview.chromium.org/2841193002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java#newcode32 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java:32: public static int showDisclosure(WebappInfo webappInfo, WebappDataStorage storage) { On ...
3 years, 7 months ago (2017-05-24 14:59:25 UTC) #16
awdf
On 2017/05/24 14:59:25, Yaron wrote: > https://codereview.chromium.org/2841193002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java > File > chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java > (right): > > ...
3 years, 7 months ago (2017-05-24 15:29:11 UTC) #17
Yaron
On 2017/05/24 15:29:11, awdf wrote: > On 2017/05/24 14:59:25, Yaron wrote: > > > https://codereview.chromium.org/2841193002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkDisclosureNotificationManager.java ...
3 years, 7 months ago (2017-05-24 15:53:13 UTC) #18
Yaron
ok, ready for another pass. I commented on a few changes that I made locally ...
3 years, 7 months ago (2017-05-24 18:08:30 UTC) #25
awdf
https://codereview.chromium.org/2841193002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java (right): https://codereview.chromium.org/2841193002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java#newcode151 chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java:151: if (!ChannelDefinitions.CHANNEL_ID_BROWSER.equals(mChannelId)) { On 2017/05/24 18:08:29, Yaron wrote: > ...
3 years, 7 months ago (2017-05-25 13:56:46 UTC) #32
Yaron
https://codereview.chromium.org/2841193002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java (right): https://codereview.chromium.org/2841193002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java#newcode83 chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java:83: // TODO(yfriedman): Pass in the ChannelDefinition On 2017/05/25 13:56:45, ...
3 years, 6 months ago (2017-05-25 15:24:48 UTC) #33
awdf
lgtm % nits https://codereview.chromium.org/2841193002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java (right): https://codereview.chromium.org/2841193002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java#newcode83 chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java:83: // TODO(yfriedman): Pass in the ChannelDefinition ...
3 years, 6 months ago (2017-05-25 15:54:29 UTC) #34
pkotwicz
https://codereview.chromium.org/2841193002/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (right): https://codereview.chromium.org/2841193002/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java#newcode174 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java:174: maybeShowDisclosure(storage); It is possible for onDeferredStartup() to be called ...
3 years, 6 months ago (2017-05-25 22:08:43 UTC) #39
Yaron
https://codereview.chromium.org/2841193002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java (right): https://codereview.chromium.org/2841193002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java#newcode83 chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java:83: // TODO(yfriedman): Pass in the ChannelDefinition On 2017/05/25 15:54:29, ...
3 years, 6 months ago (2017-05-26 14:33:00 UTC) #40
pkotwicz
WebApkActivity.java LGTM
3 years, 6 months ago (2017-05-26 14:56:31 UTC) #41
dominickn
lgtm https://codereview.chromium.org/2841193002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (right): https://codereview.chromium.org/2841193002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java#newcode31 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java:31: Nit: extra newline
3 years, 6 months ago (2017-05-29 04:34:56 UTC) #42
Yaron
thanks https://codereview.chromium.org/2841193002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (right): https://codereview.chromium.org/2841193002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java#newcode31 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java:31: On 2017/05/29 04:34:56, dominickn wrote: > Nit: extra ...
3 years, 6 months ago (2017-05-29 13:38:17 UTC) #43
Yaron
thanks
3 years, 6 months ago (2017-05-29 13:38:19 UTC) #44
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/2841193002/200001
3 years, 6 months ago (2017-05-29 13:38:38 UTC) #47
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 14:54:02 UTC) #50
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/88c8153ffb73869b07a17c3d8046...

Powered by Google App Engine
This is Rietveld 408576698