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

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

Issue 7811001: Break TYPE_PC into TYPE_WIN, TYPE_MAC, TYPE_LINUX. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add TYPE_OTHER Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/sync/protocol/proto_enum_conversions.h" 7 #include "chrome/browser/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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, MIGRATION); 84 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, MIGRATION);
85 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, NEW_CLIENT); 85 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, NEW_CLIENT);
86 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, RECONFIGURATION); 86 ENUM_CASE(sync_pb::GetUpdatesCallerInfo, RECONFIGURATION);
87 } 87 }
88 NOTREACHED(); 88 NOTREACHED();
89 return ""; 89 return "";
90 } 90 }
91 91
92 const char* GetDeviceTypeString( 92 const char* GetDeviceTypeString(
93 sync_pb::SessionHeader::DeviceType device_type) { 93 sync_pb::SessionHeader::DeviceType device_type) {
94 ASSERT_ENUM_BOUNDS(sync_pb::SessionHeader, DeviceType, TYPE_PC, TYPE_CROS); 94 ASSERT_ENUM_BOUNDS(sync_pb::SessionHeader, DeviceType, TYPE_WIN, TYPE_OTHER);
95 switch (device_type) { 95 switch (device_type) {
96 ENUM_CASE(sync_pb::SessionHeader, TYPE_PC); 96 ENUM_CASE(sync_pb::SessionHeader, TYPE_WIN);
97 ENUM_CASE(sync_pb::SessionHeader, TYPE_MAC);
98 ENUM_CASE(sync_pb::SessionHeader, TYPE_LINUX);
97 ENUM_CASE(sync_pb::SessionHeader, TYPE_CROS); 99 ENUM_CASE(sync_pb::SessionHeader, TYPE_CROS);
100 ENUM_CASE(sync_pb::SessionHeader, TYPE_OTHER);
98 } 101 }
99 NOTREACHED(); 102 NOTREACHED();
100 return ""; 103 return "";
101 } 104 }
102 105
103 #undef ASSERT_ENUM_BOUNDS 106 #undef ASSERT_ENUM_BOUNDS
104 #undef ENUM_CASE 107 #undef ENUM_CASE
105 108
106 } // namespace 109 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698