summaryrefslogtreecommitdiffstats
path: root/content/public/common/push_messaging_status.h
diff options
context:
space:
mode:
authoralger <alger@google.com>2015-12-15 15:50:03 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-15 23:51:16 +0000
commitecbe0a3ee300bedb48717078e2bd96e6b8b1e4f2 (patch)
treeb67f1728a442ec54965b641e80bbc0ad669b667e /content/public/common/push_messaging_status.h
parentcba3547586790f12aa2cec55f140c87f7aca0c06 (diff)
downloadchromium_src-ecbe0a3ee300bedb48717078e2bd96e6b8b1e4f2.zip
chromium_src-ecbe0a3ee300bedb48717078e2bd96e6b8b1e4f2.tar.gz
chromium_src-ecbe0a3ee300bedb48717078e2bd96e6b8b1e4f2.tar.bz2
Improve error messages for push API subscribe failure.
The "no sender id provided" error message is displayed in two main situations: - When no GCM sender ID has been provided in the manifest - When the manifest is not found or empty This commit introduces a new error message for the latter case ("manifest empty or missing") and updates the former message to better reflect the actual error ("gcm_sender_id not found in manifest"). BUG=463113 Review URL: https://codereview.chromium.org/1506373002 Cr-Commit-Position: refs/heads/master@{#365396}
Diffstat (limited to 'content/public/common/push_messaging_status.h')
-rw-r--r--content/public/common/push_messaging_status.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/content/public/common/push_messaging_status.h b/content/public/common/push_messaging_status.h
index 191c28e..2fd887f 100644
--- a/content/public/common/push_messaging_status.h
+++ b/content/public/common/push_messaging_status.h
@@ -52,13 +52,17 @@ enum PushRegistrationStatus {
// Registration failed because the public key could not be retrieved.
PUSH_REGISTRATION_STATUS_PUBLIC_KEY_UNAVAILABLE = 11,
+ // Registration failed because the manifest could not be retrieved or was
+ // empty.
+ PUSH_REGISTRATION_STATUS_MANIFEST_EMPTY_OR_MISSING = 12,
+
// 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_REGISTRATION_STATUS_LAST below.
PUSH_REGISTRATION_STATUS_LAST =
- PUSH_REGISTRATION_STATUS_PUBLIC_KEY_UNAVAILABLE
+ PUSH_REGISTRATION_STATUS_MANIFEST_EMPTY_OR_MISSING
};
// Push unregistration success/error codes for internal use & reporting in UMA.