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

Side by Side Diff: sync/protocol/proto_enum_conversions.cc

Issue 14655009: Client changes for disabled dasher account (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 7 years, 6 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
« no previous file with comments | « sync/internal_api/public/util/syncer_error.cc ('k') | sync/protocol/sync_enums.proto » ('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 (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 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_enum_conversions.h" 7 #include "sync/protocol/proto_enum_conversions.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 ENUM_CASE(sync_pb::SyncEnums, SUCCESS); 126 ENUM_CASE(sync_pb::SyncEnums, SUCCESS);
127 ENUM_CASE(sync_pb::SyncEnums, ACCESS_DENIED); 127 ENUM_CASE(sync_pb::SyncEnums, ACCESS_DENIED);
128 ENUM_CASE(sync_pb::SyncEnums, NOT_MY_BIRTHDAY); 128 ENUM_CASE(sync_pb::SyncEnums, NOT_MY_BIRTHDAY);
129 ENUM_CASE(sync_pb::SyncEnums, THROTTLED); 129 ENUM_CASE(sync_pb::SyncEnums, THROTTLED);
130 ENUM_CASE(sync_pb::SyncEnums, AUTH_EXPIRED); 130 ENUM_CASE(sync_pb::SyncEnums, AUTH_EXPIRED);
131 ENUM_CASE(sync_pb::SyncEnums, USER_NOT_ACTIVATED); 131 ENUM_CASE(sync_pb::SyncEnums, USER_NOT_ACTIVATED);
132 ENUM_CASE(sync_pb::SyncEnums, AUTH_INVALID); 132 ENUM_CASE(sync_pb::SyncEnums, AUTH_INVALID);
133 ENUM_CASE(sync_pb::SyncEnums, CLEAR_PENDING); 133 ENUM_CASE(sync_pb::SyncEnums, CLEAR_PENDING);
134 ENUM_CASE(sync_pb::SyncEnums, TRANSIENT_ERROR); 134 ENUM_CASE(sync_pb::SyncEnums, TRANSIENT_ERROR);
135 ENUM_CASE(sync_pb::SyncEnums, MIGRATION_DONE); 135 ENUM_CASE(sync_pb::SyncEnums, MIGRATION_DONE);
136 ENUM_CASE(sync_pb::SyncEnums, DISABLED_BY_ADMIN);
136 ENUM_CASE(sync_pb::SyncEnums, UNKNOWN); 137 ENUM_CASE(sync_pb::SyncEnums, UNKNOWN);
137 } 138 }
138 NOTREACHED(); 139 NOTREACHED();
139 return ""; 140 return "";
140 } 141 }
141 142
142 const char* GetActionString(sync_pb::SyncEnums::Action action) { 143 const char* GetActionString(sync_pb::SyncEnums::Action action) {
143 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, Action, 144 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, Action,
144 UPGRADE_CLIENT, UNKNOWN_ACTION); 145 UPGRADE_CLIENT, UNKNOWN_ACTION);
145 switch (action) { 146 switch (action) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 ENUM_CASE(sync_pb::TabNavigation, STATE_BLOCKED); 229 ENUM_CASE(sync_pb::TabNavigation, STATE_BLOCKED);
229 } 230 }
230 NOTREACHED(); 231 NOTREACHED();
231 return ""; 232 return "";
232 } 233 }
233 234
234 #undef ASSERT_ENUM_BOUNDS 235 #undef ASSERT_ENUM_BOUNDS
235 #undef ENUM_CASE 236 #undef ENUM_CASE
236 237
237 } // namespace syncer 238 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/util/syncer_error.cc ('k') | sync/protocol/sync_enums.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698