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

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

Issue 2974573002: Refactor WebApkServiceConnectionManager. (Closed)
Patch Set: yfriedman@'s comments. Created 3 years, 5 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/notifications/WebApkNotificationClient.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java
index 68b57bc35c019396e9b6dc498e7635f00f9104c9..ec83baccd01b568abb697a1025d1761d7f9497ea 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java
@@ -40,6 +40,7 @@ import org.chromium.chrome.browser.preferences.PreferencesLauncher;
import org.chromium.chrome.browser.preferences.website.SingleCategoryPreferences;
import org.chromium.chrome.browser.preferences.website.SingleWebsitePreferences;
import org.chromium.chrome.browser.preferences.website.SiteSettingsCategory;
+import org.chromium.chrome.browser.webapps.WebApkServiceClient;
import org.chromium.components.url_formatter.UrlFormatter;
import org.chromium.webapk.lib.client.WebApkValidator;
@@ -584,7 +585,7 @@ public class NotificationPlatformBridge {
String platformTag = makePlatformTag(notificationId, origin, tag);
if (forWebApk) {
- WebApkNotificationClient.notifyNotification(
+ WebApkServiceClient.getInstance().notifyNotification(
webApkPackage, notificationBuilder, platformTag, PLATFORM_ID);
} else {
// Set up a pending intent for going to the settings screen for |origin|.
@@ -719,7 +720,8 @@ public class NotificationPlatformBridge {
if (webApkPackage.isEmpty()) {
mNotificationManager.cancel(platformTag, PLATFORM_ID);
} else {
- WebApkNotificationClient.cancelNotification(webApkPackage, platformTag, PLATFORM_ID);
+ WebApkServiceClient.getInstance().cancelNotification(
+ webApkPackage, platformTag, PLATFORM_ID);
}
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/notifications/WebApkNotificationClient.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698