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

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

Issue 2697793004: Push API: Validate storage before returning cached subscriptions (Closed)
Patch Set: Comment out PUSH_GETREGISTRATION_STATUS_PUBLIC_KEY_UNAVAILABLE 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: content/public/common/push_messaging_status.cc
diff --git a/content/public/common/push_messaging_status.cc b/content/public/common/push_messaging_status.cc
index abee3207eff2ac45fd04b4a11b627257ebf74c73..664ce1632b49bbcc18df8bd9aa24336c5703e353 100644
--- a/content/public/common/push_messaging_status.cc
+++ b/content/public/common/push_messaging_status.cc
@@ -57,6 +57,9 @@ const char* PushRegistrationStatusToString(PushRegistrationStatus status) {
return "Registration failed - A subscription with a different "
"applicationServerKey (or gcm_sender_id) already exists; to "
"change the applicationServerKey, unsubscribe then resubscribe.";
+
+ case PUSH_REGISTRATION_STATUS_STORAGE_CORRUPT:
+ return "Registration failed - storage corrupt";
}
NOTREACHED();
return "";

Powered by Google App Engine
This is Rietveld 408576698