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

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

Issue 1026853002: Integrate the notification database with the normal code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-ConfirmShow
Patch Set: delete a now invalid test Created 5 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/NotificationConstants.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java
index ff574db44f63bec95762599334f2b0b5e593530f..f2ad64d54cf7829fe6fab68a43507ed2cec3d9fc 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java
@@ -14,13 +14,19 @@ public class NotificationConstants {
public static final String ACTION_CLOSE_NOTIFICATION =
"org.chromium.chrome.browser.notifications.CLOSE_NOTIFICATION";
- public static final String EXTRA_NOTIFICATION_ID = "notification_id";
+ /**
+ * Name of the Intent extra set by the framework when a notification preferences intent has
+ * been triggered from there, which could be one of the setting gears in system UI.
+ */
public static final String EXTRA_NOTIFICATION_TAG = "notification_tag";
- // TODO(peter): Remove these extras once Notifications are powered by a database on the
- // native side, that contains all the additional information.
- public static final String EXTRA_NOTIFICATION_PLATFORM_ID = "notification_platform_id";
- public static final String EXTRA_NOTIFICATION_DATA = "notification_data";
+ /**
+ * Names of the Intent extras used for Intents related to notifications. These intents are set
+ * and owned by Chromium.
+ */
+ public static final String EXTRA_PERSISTENT_NOTIFICATION_ID = "notification_persistent_id";
+ public static final String EXTRA_NOTIFICATION_INFO_ORIGIN = "notification_info_origin";
+ public static final String EXTRA_NOTIFICATION_INFO_TAG = "notification_info_tag";
/**
* Unique identifier for a single sync notification. Since the notification ID is reused,

Powered by Google App Engine
This is Rietveld 408576698