| 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 "chrome/browser/notifications/notification_conversion_helper.h" | 5 #include "chrome/browser/notifications/notification_conversion_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 message_center::NotificationType type) { | 195 message_center::NotificationType type) { |
| 196 switch (type) { | 196 switch (type) { |
| 197 case message_center::NOTIFICATION_TYPE_BASE_FORMAT: | 197 case message_center::NOTIFICATION_TYPE_BASE_FORMAT: |
| 198 return "basic"; | 198 return "basic"; |
| 199 case message_center::NOTIFICATION_TYPE_IMAGE: | 199 case message_center::NOTIFICATION_TYPE_IMAGE: |
| 200 return "image"; | 200 return "image"; |
| 201 case message_center::NOTIFICATION_TYPE_MULTIPLE: | 201 case message_center::NOTIFICATION_TYPE_MULTIPLE: |
| 202 return "list"; | 202 return "list"; |
| 203 case message_center::NOTIFICATION_TYPE_PROGRESS: | 203 case message_center::NOTIFICATION_TYPE_PROGRESS: |
| 204 return "progress"; | 204 return "progress"; |
| 205 case message_center::NOTIFICATION_TYPE_CUSTOM: |
| 206 return "custom"; |
| 205 default: | 207 default: |
| 206 NOTREACHED(); | 208 NOTREACHED(); |
| 207 return ""; | 209 return ""; |
| 208 } | 210 } |
| 209 } | 211 } |
| OLD | NEW |