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

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

Issue 2808163002: [Android O] Refactor channel initialization (Closed)
Patch Set: fix comments 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/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 cd8e7a1453202fa7ec24cf685df32cd686c38ed2..b66d3dc3956cca8801bc99c1aa640b8bbd5ea81a 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
@@ -141,13 +141,8 @@ public class CustomNotificationBuilder extends NotificationBuilderBase {
// API level of methods you call on the builder.
// TODO(crbug.com/697104) We should probably use a Compat builder.
ChromeNotificationBuilder builder =
- NotificationBuilderFactory.createChromeNotificationBuilder(false /* preferCompat */,
- NotificationConstants.CHANNEL_ID_SITES,
- mContext.getString(
- org.chromium.chrome.R.string.notification_category_sites),
- NotificationConstants.CHANNEL_GROUP_ID_GENERAL,
- mContext.getString(
- org.chromium.chrome.R.string.notification_category_group_general));
+ NotificationBuilderFactory.createChromeNotificationBuilder(
+ false /* preferCompat */, ChannelsInitializer.CHANNEL_ID_SITES);
builder.setTicker(mTickerText);
builder.setContentIntent(mContentIntent);
builder.setDeleteIntent(mDeleteIntent);

Powered by Google App Engine
This is Rietveld 408576698