| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "sync/notifier/notifications_disabled_reason.h" | 5 #include "sync/notifier/notifications_disabled_reason.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace csync { | 9 namespace syncer { |
| 10 | 10 |
| 11 const char* NotificationsDisabledReasonToString( | 11 const char* NotificationsDisabledReasonToString( |
| 12 NotificationsDisabledReason reason) { | 12 NotificationsDisabledReason reason) { |
| 13 switch (reason) { | 13 switch (reason) { |
| 14 case NO_NOTIFICATION_ERROR: | 14 case NO_NOTIFICATION_ERROR: |
| 15 return "NO_NOTIFICATION_ERROR"; | 15 return "NO_NOTIFICATION_ERROR"; |
| 16 case TRANSIENT_NOTIFICATION_ERROR: | 16 case TRANSIENT_NOTIFICATION_ERROR: |
| 17 return "TRANSIENT_NOTIFICATION_ERROR"; | 17 return "TRANSIENT_NOTIFICATION_ERROR"; |
| 18 case NOTIFICATION_CREDENTIALS_REJECTED: | 18 case NOTIFICATION_CREDENTIALS_REJECTED: |
| 19 return "NOTIFICATION_CREDENTIALS_REJECTED"; | 19 return "NOTIFICATION_CREDENTIALS_REJECTED"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 case notifier::TRANSIENT_NOTIFICATION_ERROR: | 31 case notifier::TRANSIENT_NOTIFICATION_ERROR: |
| 32 return TRANSIENT_NOTIFICATION_ERROR; | 32 return TRANSIENT_NOTIFICATION_ERROR; |
| 33 case notifier::NOTIFICATION_CREDENTIALS_REJECTED: | 33 case notifier::NOTIFICATION_CREDENTIALS_REJECTED: |
| 34 return NOTIFICATION_CREDENTIALS_REJECTED; | 34 return NOTIFICATION_CREDENTIALS_REJECTED; |
| 35 default: | 35 default: |
| 36 NOTREACHED(); | 36 NOTREACHED(); |
| 37 return TRANSIENT_NOTIFICATION_ERROR; | 37 return TRANSIENT_NOTIFICATION_ERROR; |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // sync_notifier | 41 } // namespace syncer |
| OLD | NEW |