| Index: sync/notifier/notifications_disabled_reason.cc
|
| diff --git a/sync/notifier/notifications_disabled_reason.cc b/sync/notifier/notifications_disabled_reason.cc
|
| index 89c0a03c723a106931a23e7f5f5638f36f8c8a36..8c1a1aaadb63fab945cbe47727da9325d5708317 100644
|
| --- a/sync/notifier/notifications_disabled_reason.cc
|
| +++ b/sync/notifier/notifications_disabled_reason.cc
|
| @@ -38,4 +38,19 @@ NotificationsDisabledReason FromNotifierReason(
|
| }
|
| }
|
|
|
| +notifier::NotificationsDisabledReason ToNotifierReasonForTest(
|
| + NotificationsDisabledReason reason) {
|
| + switch (reason) {
|
| + case NO_NOTIFICATION_ERROR:
|
| + return notifier::NO_NOTIFICATION_ERROR;
|
| + case TRANSIENT_NOTIFICATION_ERROR:
|
| + return notifier::TRANSIENT_NOTIFICATION_ERROR;
|
| + case NOTIFICATION_CREDENTIALS_REJECTED:
|
| + return notifier::NOTIFICATION_CREDENTIALS_REJECTED;
|
| + default:
|
| + NOTREACHED();
|
| + return notifier::TRANSIENT_NOTIFICATION_ERROR;
|
| + }
|
| +}
|
| +
|
| } // namespace syncer
|
|
|