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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.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/NotificationBuilderBase.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java
index 4d86567f7987f28766a92ecb04e44eb803cf0863..be22dc30a9234c448a64b51ddef10d3453db28a0 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java
@@ -122,7 +122,7 @@ public abstract class NotificationBuilderBase {
protected long[] mVibratePattern;
protected long mTimestamp;
protected boolean mRenotify;
-
+ protected int mVisibility;
private Bitmap mLargeIcon;
public NotificationBuilderBase(Resources resources) {
@@ -299,6 +299,15 @@ public abstract class NotificationBuilderBase {
}
/**
+ * Sets the visibility of the notification (if set to private, overrides \setDefaults| and
+ * |setVibrate|)
+ */
+ public NotificationBuilderBase setVisibility(int visibility) {
+ mVisibility = visibility;
+ return this;
+ }
+
+ /**
* Sets the timestamp at which the event of the notification took place.
*/
public NotificationBuilderBase setTimestamp(long timestamp) {

Powered by Google App Engine
This is Rietveld 408576698