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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.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/sync/SyncNotificationController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java b/chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java
index 0d3f4e788cfde2827f812059451a69f06969a38e..a31bca8e14cbc86d9996a14845c1646d29382d34 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java
@@ -16,6 +16,7 @@ import android.util.Log;
import org.chromium.base.ThreadUtils;
import org.chromium.chrome.R;
+import org.chromium.chrome.browser.notifications.ChannelsInitializer;
import org.chromium.chrome.browser.notifications.ChromeNotificationBuilder;
import org.chromium.chrome.browser.notifications.NotificationBuilderFactory;
import org.chromium.chrome.browser.notifications.NotificationConstants;
@@ -103,13 +104,8 @@ public class SyncNotificationController implements ProfileSyncService.SyncStateC
// notification id ensures there's only one sync notification at a time.
ChromeNotificationBuilder builder =
NotificationBuilderFactory
- .createChromeNotificationBuilder(true /* preferCompat */,
- NotificationConstants.CHANNEL_ID_BROWSER,
- mApplicationContext.getString(
- R.string.notification_category_browser),
- NotificationConstants.CHANNEL_GROUP_ID_GENERAL,
- mApplicationContext.getString(
- R.string.notification_category_group_general))
+ .createChromeNotificationBuilder(
+ true /* preferCompat */, ChannelsInitializer.CHANNEL_ID_BROWSER)
.setAutoCancel(true)
.setContentIntent(contentIntent)
.setContentTitle(title)

Powered by Google App Engine
This is Rietveld 408576698