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

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

Issue 10584019: sync: Remove ClearUserData command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 8 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 | Annotate | Revision Log
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source) { 72 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source) {
73 ASSERT_ENUM_BOUNDS(sync_pb::GetUpdatesCallerInfo, GetUpdatesSource, 73 ASSERT_ENUM_BOUNDS(sync_pb::GetUpdatesCallerInfo, GetUpdatesSource,
74 UNKNOWN, DATATYPE_REFRESH); 74 UNKNOWN, DATATYPE_REFRESH);
75 switch (updates_source) { 75 switch (updates_source) {
76 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, UNKNOWN); 76 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, UNKNOWN);
77 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, FIRST_UPDATE); 77 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, FIRST_UPDATE);
78 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, LOCAL); 78 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, LOCAL);
79 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, NOTIFICATION); 79 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, NOTIFICATION);
80 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, PERIODIC); 80 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, PERIODIC);
81 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, SYNC_CYCLE_CONTINUATION); 81 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, SYNC_CYCLE_CONTINUATION);
82 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, CLEAR_PRIVATE_DATA);
83 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, NEWLY_SUPPORTED_DATATYPE); 82 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, NEWLY_SUPPORTED_DATATYPE);
84 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, MIGRATION); 83 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, MIGRATION);
85 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, NEW_CLIENT); 84 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, NEW_CLIENT);
86 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, RECONFIGURATION); 85 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, RECONFIGURATION);
87 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, DATATYPE_REFRESH); 86 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, DATATYPE_REFRESH);
88 } 87 }
89 NOTREACHED(); 88 NOTREACHED();
90 return ""; 89 return "";
91 } 90 }
92 91
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 ENUM_CASE(sync_pb::SessionTab, TYPE_WEB_FAVICON); 164 ENUM_CASE(sync_pb::SessionTab, TYPE_WEB_FAVICON);
166 } 165 }
167 NOTREACHED(); 166 NOTREACHED();
168 return ""; 167 return "";
169 } 168 }
170 169
171 #undef ASSERT_ENUM_BOUNDS 170 #undef ASSERT_ENUM_BOUNDS
172 #undef ENUM_CASE 171 #undef ENUM_CASE
173 172
174 } // namespace 173 } // namespace
OLDNEW
« no previous file with comments | « sync/protocol/get_updates_caller_info.proto ('k') | sync/protocol/proto_enum_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698