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

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

Issue 10897034: First part of PAGE_TRANSITION_START_PAGE cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 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 | « content/public/common/page_transition_types.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 25 matching lines...) Expand all
36 sync_pb::SyncEnums::PageTransition page_transition) { 36 sync_pb::SyncEnums::PageTransition page_transition) {
37 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, PageTransition, 37 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, PageTransition,
38 LINK, CHAIN_END); 38 LINK, CHAIN_END);
39 switch (page_transition) { 39 switch (page_transition) {
40 ENUM_CASE(sync_pb::SyncEnums, LINK); 40 ENUM_CASE(sync_pb::SyncEnums, LINK);
41 ENUM_CASE(sync_pb::SyncEnums, TYPED); 41 ENUM_CASE(sync_pb::SyncEnums, TYPED);
42 ENUM_CASE(sync_pb::SyncEnums, AUTO_BOOKMARK); 42 ENUM_CASE(sync_pb::SyncEnums, AUTO_BOOKMARK);
43 ENUM_CASE(sync_pb::SyncEnums, AUTO_SUBFRAME); 43 ENUM_CASE(sync_pb::SyncEnums, AUTO_SUBFRAME);
44 ENUM_CASE(sync_pb::SyncEnums, MANUAL_SUBFRAME); 44 ENUM_CASE(sync_pb::SyncEnums, MANUAL_SUBFRAME);
45 ENUM_CASE(sync_pb::SyncEnums, GENERATED); 45 ENUM_CASE(sync_pb::SyncEnums, GENERATED);
46 ENUM_CASE(sync_pb::SyncEnums, START_PAGE); 46 ENUM_CASE(sync_pb::SyncEnums, AUTO_TOPLEVEL);
47 ENUM_CASE(sync_pb::SyncEnums, FORM_SUBMIT); 47 ENUM_CASE(sync_pb::SyncEnums, FORM_SUBMIT);
48 ENUM_CASE(sync_pb::SyncEnums, RELOAD); 48 ENUM_CASE(sync_pb::SyncEnums, RELOAD);
49 ENUM_CASE(sync_pb::SyncEnums, KEYWORD); 49 ENUM_CASE(sync_pb::SyncEnums, KEYWORD);
50 ENUM_CASE(sync_pb::SyncEnums, KEYWORD_GENERATED); 50 ENUM_CASE(sync_pb::SyncEnums, KEYWORD_GENERATED);
51 ENUM_CASE(sync_pb::SyncEnums, CHAIN_START); 51 ENUM_CASE(sync_pb::SyncEnums, CHAIN_START);
52 ENUM_CASE(sync_pb::SyncEnums, CHAIN_END); 52 ENUM_CASE(sync_pb::SyncEnums, CHAIN_END);
53 } 53 }
54 NOTREACHED(); 54 NOTREACHED();
55 return ""; 55 return "";
56 } 56 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 ENUM_CASE(sync_pb::SessionTab, TYPE_WEB_FAVICON); 164 ENUM_CASE(sync_pb::SessionTab, TYPE_WEB_FAVICON);
165 } 165 }
166 NOTREACHED(); 166 NOTREACHED();
167 return ""; 167 return "";
168 } 168 }
169 169
170 #undef ASSERT_ENUM_BOUNDS 170 #undef ASSERT_ENUM_BOUNDS
171 #undef ENUM_CASE 171 #undef ENUM_CASE
172 172
173 } // namespace syncer 173 } // namespace syncer
OLDNEW
« no previous file with comments | « content/public/common/page_transition_types.cc ('k') | sync/protocol/sync_enums.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698