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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java

Issue 2841193002: Implement privacy disclosure for an unbound webapk. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java
index a1f62659779c1fd1e66f34247ff6f7ed1c3669e1..4c4bd027357344c8fae331c8e7a0364c634302ec 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java
@@ -146,8 +146,11 @@ public class CustomNotificationBuilder extends NotificationBuilderBase {
builder.setTicker(mTickerText);
builder.setContentIntent(mContentIntent);
builder.setDeleteIntent(mDeleteIntent);
- builder.setDefaults(mDefaults);
- builder.setVibrate(mVibratePattern);
+ builder.setVisibility(mVisibility);
+ if (mVisibility != Notification.VISIBILITY_SECRET) {
awdf 2017/05/24 14:47:42 maybe change this to check a new channel id field
+ builder.setDefaults(mDefaults);
+ builder.setVibrate(mVibratePattern);
+ }
builder.setWhen(mTimestamp);
builder.setOnlyAlertOnce(!mRenotify);
builder.setContent(compactView);

Powered by Google App Engine
This is Rietveld 408576698