Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(921)

Side by Side Diff: components/invalidation/invalidator_state.cc

Issue 400073003: Finish decoupling sync and invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix GN Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/invalidation/invalidator_state.h ('k') | components/invalidation/mock_ack_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "sync/internal_api/public/base/invalidator_state.h" 5 #include "components/invalidation/invalidator_state.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace syncer { 9 namespace syncer {
10 10
11 const char* InvalidatorStateToString(InvalidatorState state) { 11 const char* InvalidatorStateToString(InvalidatorState state) {
12 switch (state) { 12 switch (state) {
13 case TRANSIENT_INVALIDATION_ERROR: 13 case TRANSIENT_INVALIDATION_ERROR:
14 return "TRANSIENT_INVALIDATION_ERROR"; 14 return "TRANSIENT_INVALIDATION_ERROR";
15 case INVALIDATION_CREDENTIALS_REJECTED: 15 case INVALIDATION_CREDENTIALS_REJECTED:
16 return "INVALIDATION_CREDENTIALS_REJECTED"; 16 return "INVALIDATION_CREDENTIALS_REJECTED";
17 case INVALIDATIONS_ENABLED: 17 case INVALIDATIONS_ENABLED:
18 return "INVALIDATIONS_ENABLED"; 18 return "INVALIDATIONS_ENABLED";
19 default: 19 default:
20 NOTREACHED(); 20 NOTREACHED();
21 return "UNKNOWN_INVALIDATOR_STATE"; 21 return "UNKNOWN_INVALIDATOR_STATE";
22 } 22 }
23 } 23 }
24 24
25 } // namespace syncer 25 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/invalidator_state.h ('k') | components/invalidation/mock_ack_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698