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

Unified Diff: components/gcm_driver/gcm_client.h

Issue 2675293003: Push API: Don't wait for network when unsubscribing (Closed)
Patch Set: Address peter's review comments Created 3 years, 10 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: components/gcm_driver/gcm_client.h
diff --git a/components/gcm_driver/gcm_client.h b/components/gcm_driver/gcm_client.h
index c4dd12adc914375e3c8cf118e114589f292a7df5..95a56d9d0e0f667fc24228fcfaaf535447794f88 100644
--- a/components/gcm_driver/gcm_client.h
+++ b/components/gcm_driver/gcm_client.h
@@ -51,6 +51,7 @@ class GCMClient {
IMMEDIATE_START
};
+ // Used for UMA. Can add enum values, but never renumber or delete and reuse.
enum Result {
// Successful operation.
SUCCESS,
@@ -68,7 +69,10 @@ class GCMClient {
// Exceeded the specified TTL during message sending.
TTL_EXCEEDED,
// Other errors.
- UNKNOWN_ERROR
+ UNKNOWN_ERROR,
+
+ // Used for UMA. Keep LAST_RESULT up to date and sync with histograms.xml.
+ LAST_RESULT = UNKNOWN_ERROR
};
enum ChromePlatform {
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_impl.cc ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698