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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilder.java

Issue 1656243002: Implementation of renotify flag for Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.notifications; 5 package org.chromium.chrome.browser.notifications;
6 6
7 import android.app.Notification; 7 import android.app.Notification;
8 import android.content.Context; 8 import android.content.Context;
9 import android.support.v4.app.NotificationCompat; 9 import android.support.v4.app.NotificationCompat;
10 import android.support.v4.app.NotificationCompat.Action; 10 import android.support.v4.app.NotificationCompat.Action;
(...skipping 23 matching lines...) Expand all
34 builder.setDeleteIntent(mDeleteIntent); 34 builder.setDeleteIntent(mDeleteIntent);
35 for (Action action : mActions) { 35 for (Action action : mActions) {
36 builder.addAction(action); 36 builder.addAction(action);
37 } 37 }
38 if (mSettingsAction != null) { 38 if (mSettingsAction != null) {
39 builder.addAction(mSettingsAction); 39 builder.addAction(mSettingsAction);
40 } 40 }
41 builder.setDefaults(mDefaults); 41 builder.setDefaults(mDefaults);
42 builder.setVibrate(mVibratePattern); 42 builder.setVibrate(mVibratePattern);
43 builder.setWhen(mTimestamp); 43 builder.setWhen(mTimestamp);
44 builder.setOnlyAlertOnce(!mRenotify);
44 return builder.build(); 45 return builder.build();
45 } 46 }
46 } 47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698