| 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 "components/invalidation/notifier_reason_util.h" | 5 #include "components/invalidation/impl/notifier_reason_util.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace syncer { | 9 namespace syncer { |
| 10 | 10 |
| 11 InvalidatorState FromNotifierReason( | 11 InvalidatorState FromNotifierReason( |
| 12 notifier::NotificationsDisabledReason reason) { | 12 notifier::NotificationsDisabledReason reason) { |
| 13 switch (reason) { | 13 switch (reason) { |
| 14 case notifier::NO_NOTIFICATION_ERROR: | 14 case notifier::NO_NOTIFICATION_ERROR: |
| 15 return INVALIDATIONS_ENABLED; | 15 return INVALIDATIONS_ENABLED; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 32 return notifier::NOTIFICATION_CREDENTIALS_REJECTED; | 32 return notifier::NOTIFICATION_CREDENTIALS_REJECTED; |
| 33 case INVALIDATIONS_ENABLED: | 33 case INVALIDATIONS_ENABLED: |
| 34 // Fall through. | 34 // Fall through. |
| 35 default: | 35 default: |
| 36 NOTREACHED(); | 36 NOTREACHED(); |
| 37 return notifier::TRANSIENT_NOTIFICATION_ERROR; | 37 return notifier::TRANSIENT_NOTIFICATION_ERROR; |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace syncer | 41 } // namespace syncer |
| OLD | NEW |