| Index: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java
|
| index fc6ef11feb1abe804aa476673685dec1768ceb44..532850cccc8bc259093bf3df38839880b621dad2 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java
|
| @@ -95,7 +95,7 @@ public class NotificationUIManager {
|
| @CalledByNative
|
| private static NotificationUIManager create(long nativeNotificationManager, Context context) {
|
| if (sInstance != null) {
|
| - throw new IllegalStateException("There must only be a single NotificationUIManager.");
|
| + throw new IllegalStateException("There must only be a single NotificationBridge.");
|
| }
|
|
|
| sInstance = new NotificationUIManager(nativeNotificationManager, context);
|
| @@ -640,12 +640,15 @@ public class NotificationUIManager {
|
| /**
|
| * Closes the notification associated with the given parameters.
|
| *
|
| + * @param profileId of the profile whose notification this is for.
|
| * @param persistentNotificationId The persistent id of the notification.
|
| * @param origin The origin to which the notification belongs.
|
| * @param tag The tag of the notification. May be NULL.
|
| */
|
| @CalledByNative
|
| - private void closeNotification(long persistentNotificationId, String origin, String tag) {
|
| + private void closeNotification(
|
| + String profileId, long persistentNotificationId, String origin, String tag) {
|
| + // TODO(miguelg) make profile_id part of the tag.
|
| String platformTag = makePlatformTag(persistentNotificationId, origin, tag);
|
| mNotificationManager.cancel(platformTag, PLATFORM_ID);
|
| }
|
|
|