OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/common/push_messaging_status.h" | 5 #include "content/public/common/push_messaging_status.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... | |
21 | 21 |
22 case PUSH_MESSAGING_STATUS_REGISTRATION_FAILED_LIMIT_REACHED: | 22 case PUSH_MESSAGING_STATUS_REGISTRATION_FAILED_LIMIT_REACHED: |
23 return "Registration failed - registration limit has been reached"; | 23 return "Registration failed - registration limit has been reached"; |
24 | 24 |
25 case PUSH_MESSAGING_STATUS_REGISTRATION_FAILED_PERMISSION_DENIED: | 25 case PUSH_MESSAGING_STATUS_REGISTRATION_FAILED_PERMISSION_DENIED: |
26 return "Registration failed - permission denied"; | 26 return "Registration failed - permission denied"; |
27 | 27 |
28 case PUSH_MESSAGING_STATUS_REGISTRATION_FAILED_SERVICE_ERROR: | 28 case PUSH_MESSAGING_STATUS_REGISTRATION_FAILED_SERVICE_ERROR: |
29 return "Registration failed - push service error"; | 29 return "Registration failed - push service error"; |
30 | 30 |
31 case PUSH_MESSAGING_STATUS_MESSAGE_DELIVERY_FAILED_NO_SERVICE_WORKER: | |
32 return "Message delivery failed because no Service Worker was found"; | |
johnme
2014/07/23 14:25:23
Nit: "Message delivery failed - no matching Servic
Michael van Ouwerkerk
2014/07/23 16:57:52
Done.
| |
33 | |
34 case PUSH_MESSAGING_STATUS_MESSAGE_DELIVERY_FAILED_SERVICE_WORKER_ERROR: | |
35 return "Message delivery failed due to a Service Worker error"; | |
36 | |
31 case PUSH_MESSAGING_STATUS_ERROR: | 37 case PUSH_MESSAGING_STATUS_ERROR: |
32 return "Operation has failed (unspecified reason)"; | 38 return "Operation has failed (unspecified reason)"; |
33 } | 39 } |
34 NOTREACHED(); | 40 NOTREACHED(); |
35 return ""; | 41 return ""; |
36 } | 42 } |
37 | 43 |
38 } // namespace content | 44 } // namespace content |
OLD | NEW |