Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / invalidation / invalidator_state.cc
blob1ad3c45495e17ed15e49efccf6fde0419bfc0c72
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
3 // found in the LICENSE file.
5 #include "components/invalidation/invalidator_state.h"
7 #include "base/logging.h"
9 namespace syncer {
11 const char* InvalidatorStateToString(InvalidatorState state) {
12 switch (state) {
13 case TRANSIENT_INVALIDATION_ERROR:
14 return "TRANSIENT_INVALIDATION_ERROR";
15 case INVALIDATION_CREDENTIALS_REJECTED:
16 return "INVALIDATION_CREDENTIALS_REJECTED";
17 case INVALIDATIONS_ENABLED:
18 return "INVALIDATIONS_ENABLED";
19 default:
20 NOTREACHED();
21 return "UNKNOWN_INVALIDATOR_STATE";
25 } // namespace syncer