| OLD | NEW |
| 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 #include "sync/engine/syncer_proto_util.h" | 5 #include "sync/engine/syncer_proto_util.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "google_apis/google_api_keys.h" | 9 #include "google_apis/google_api_keys.h" |
| 10 #include "sync/engine/net/server_connection_manager.h" | 10 #include "sync/engine/net/server_connection_manager.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 case sync_pb::SyncEnums::UPGRADE_CLIENT: | 140 case sync_pb::SyncEnums::UPGRADE_CLIENT: |
| 141 return UPGRADE_CLIENT; | 141 return UPGRADE_CLIENT; |
| 142 case sync_pb::SyncEnums::CLEAR_USER_DATA_AND_RESYNC: | 142 case sync_pb::SyncEnums::CLEAR_USER_DATA_AND_RESYNC: |
| 143 return CLEAR_USER_DATA_AND_RESYNC; | 143 return CLEAR_USER_DATA_AND_RESYNC; |
| 144 case sync_pb::SyncEnums::ENABLE_SYNC_ON_ACCOUNT: | 144 case sync_pb::SyncEnums::ENABLE_SYNC_ON_ACCOUNT: |
| 145 return ENABLE_SYNC_ON_ACCOUNT; | 145 return ENABLE_SYNC_ON_ACCOUNT; |
| 146 case sync_pb::SyncEnums::STOP_AND_RESTART_SYNC: | 146 case sync_pb::SyncEnums::STOP_AND_RESTART_SYNC: |
| 147 return STOP_AND_RESTART_SYNC; | 147 return STOP_AND_RESTART_SYNC; |
| 148 case sync_pb::SyncEnums::DISABLE_SYNC_ON_CLIENT: | 148 case sync_pb::SyncEnums::DISABLE_SYNC_ON_CLIENT: |
| 149 return DISABLE_SYNC_ON_CLIENT; | 149 return DISABLE_SYNC_ON_CLIENT; |
| 150 case sync_pb::SyncEnums::DISABLE_SYNC_AND_ROLLBACK: |
| 151 return DISABLE_SYNC_AND_ROLLBACK; |
| 150 case sync_pb::SyncEnums::UNKNOWN_ACTION: | 152 case sync_pb::SyncEnums::UNKNOWN_ACTION: |
| 151 return UNKNOWN_ACTION; | 153 return UNKNOWN_ACTION; |
| 152 default: | 154 default: |
| 153 NOTREACHED(); | 155 NOTREACHED(); |
| 154 return UNKNOWN_ACTION; | 156 return UNKNOWN_ACTION; |
| 155 } | 157 } |
| 156 } | 158 } |
| 157 | 159 |
| 158 } // namespace | 160 } // namespace |
| 159 | 161 |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 std::string SyncerProtoUtil::ClientToServerResponseDebugString( | 571 std::string SyncerProtoUtil::ClientToServerResponseDebugString( |
| 570 const ClientToServerResponse& response) { | 572 const ClientToServerResponse& response) { |
| 571 // Add more handlers as needed. | 573 // Add more handlers as needed. |
| 572 std::string output; | 574 std::string output; |
| 573 if (response.has_get_updates()) | 575 if (response.has_get_updates()) |
| 574 output.append(GetUpdatesResponseString(response.get_updates())); | 576 output.append(GetUpdatesResponseString(response.get_updates())); |
| 575 return output; | 577 return output; |
| 576 } | 578 } |
| 577 | 579 |
| 578 } // namespace syncer | 580 } // namespace syncer |
| OLD | NEW |