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

Unified Diff: content/public/common/push_messaging_status.h

Issue 2907613002: Reduce the impact of the push/notification kill switches (Closed)
Patch Set: comments Created 3 years, 7 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 | « chrome/browser/push_messaging/push_messaging_service_impl.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/push_messaging_status.h
diff --git a/content/public/common/push_messaging_status.h b/content/public/common/push_messaging_status.h
index b160951ffdd9119ebfc09fb56d9200cc9bc75d11..e272cf7494604b0175fc05bb9acd17e7fde5ae41 100644
--- a/content/public/common/push_messaging_status.h
+++ b/content/public/common/push_messaging_status.h
@@ -221,12 +221,16 @@ enum PushDeliveryStatus {
// The message was delivered, but the Service Worker timed out processing it.
PUSH_DELIVERY_STATUS_TIMEOUT = 7,
+ // The message could not be delivered because the permission granted to the
+ // origin has been suspended, for example through a kill switch.
+ PUSH_DELIVERY_STATUS_PERMISSION_SUSPENDED = 8,
+
// NOTE: Do not renumber these as that would confuse interpretation of
// previously logged data. When making changes, also update the enum list
// in tools/metrics/histograms/histograms.xml to keep it in sync, and
// update PUSH_DELIVERY_STATUS_LAST below.
- PUSH_DELIVERY_STATUS_LAST = PUSH_DELIVERY_STATUS_TIMEOUT
+ PUSH_DELIVERY_STATUS_LAST = PUSH_DELIVERY_STATUS_PERMISSION_SUSPENDED
};
// Push message user visible tracking for reporting in UMA. Enum values can be
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_impl.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698