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

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

Issue 2832433002: [Android O] Refactor channel definitions into new class (Closed)
Patch Set: rebase 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/ChannelsUpdater.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/ChannelsUpdater.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/ChannelsUpdater.java
index 126d03e66d1917d7e4c187fbcf08daceb3443434..19c16eb7014fbe34146b1a45e1e3eb81c1494c8b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/ChannelsUpdater.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/ChannelsUpdater.java
@@ -34,10 +34,12 @@ public class ChannelsUpdater {
public static final ChannelsUpdater INSTANCE = !BuildInfo.isAtLeastO()
? new ChannelsUpdater(false /* isAtLeastO */, null, null, -1)
: new ChannelsUpdater(true /* isAtLeastO */, ContextUtils.getAppSharedPreferences(),
- new ChannelsInitializer(new NotificationManagerProxyImpl(
- (NotificationManager) ContextUtils.getApplicationContext()
- .getSystemService(Context.NOTIFICATION_SERVICE))),
- ChannelsInitializer.CHANNELS_VERSION);
+ new ChannelsInitializer(
+ new NotificationManagerProxyImpl(
+ (NotificationManager) ContextUtils.getApplicationContext()
+ .getSystemService(Context.NOTIFICATION_SERVICE)),
+ new ChannelDefinitions()),
+ ChannelDefinitions.CHANNELS_VERSION);
}
@VisibleForTesting

Powered by Google App Engine
This is Rietveld 408576698