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

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

Issue 2807213002: [Android O] Initialize channels on first launch/upgrade (Closed)
Patch Set: Some more minor things Created 3 years, 8 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/NotificationManagerProxy.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationManagerProxy.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationManagerProxy.java
index 7f413081917134564b3b661e8663f2c132d974a9..75ea39bf68f8cd1b02117712cc8db095c6f148f1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationManagerProxy.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationManagerProxy.java
@@ -6,6 +6,8 @@ package org.chromium.chrome.browser.notifications;
import android.app.Notification;
+import java.util.List;
+
/**
* A proxy for the Android Notification Manager. This allows tests to be written without having to
* use the real Notification Manager.
@@ -18,6 +20,8 @@ public interface NotificationManagerProxy {
void cancelAll();
void createNotificationChannel(ChannelsInitializer.Channel channel);
void createNotificationChannelGroup(ChannelsInitializer.ChannelGroup channelGroup);
+ List<String> getNotificationChannelIds();
+ void deleteNotificationChannel(@ChannelsInitializer.ChannelId String id);
void notify(int id, Notification notification);
void notify(String tag, int id, Notification notification);

Powered by Google App Engine
This is Rietveld 408576698