| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/internal_api/public/events/configure_get_updates_request_event.h" | 5 #include "sync/internal_api/public/events/configure_get_updates_request_event.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "sync/protocol/proto_enum_conversions.h" | 8 #include "sync/protocol/proto_enum_conversions.h" |
| 9 #include "sync/protocol/proto_value_conversions.h" | 9 #include "sync/protocol/proto_value_conversions.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 } | 25 } |
| 26 | 26 |
| 27 std::string ConfigureGetUpdatesRequestEvent::GetType() const { | 27 std::string ConfigureGetUpdatesRequestEvent::GetType() const { |
| 28 return "Initial GetUpdates"; | 28 return "Initial GetUpdates"; |
| 29 } | 29 } |
| 30 | 30 |
| 31 std::string ConfigureGetUpdatesRequestEvent::GetDetails() const { | 31 std::string ConfigureGetUpdatesRequestEvent::GetDetails() const { |
| 32 return base::StringPrintf("Reason: %s", GetUpdatesOriginString(origin_)); | 32 return base::StringPrintf("Reason: %s", GetUpdatesOriginString(origin_)); |
| 33 } | 33 } |
| 34 | 34 |
| 35 scoped_ptr<base::DictionaryValue> | 35 std::unique_ptr<base::DictionaryValue> |
| 36 ConfigureGetUpdatesRequestEvent::GetProtoMessage() const { | 36 ConfigureGetUpdatesRequestEvent::GetProtoMessage() const { |
| 37 return scoped_ptr<base::DictionaryValue>( | 37 return std::unique_ptr<base::DictionaryValue>( |
| 38 ClientToServerMessageToValue(request_, false)); | 38 ClientToServerMessageToValue(request_, false)); |
| 39 } | 39 } |
| 40 | 40 |
| 41 scoped_ptr<ProtocolEvent> ConfigureGetUpdatesRequestEvent::Clone() const { | 41 std::unique_ptr<ProtocolEvent> ConfigureGetUpdatesRequestEvent::Clone() const { |
| 42 return scoped_ptr<ProtocolEvent>( | 42 return std::unique_ptr<ProtocolEvent>( |
| 43 new ConfigureGetUpdatesRequestEvent( | 43 new ConfigureGetUpdatesRequestEvent(timestamp_, origin_, request_)); |
| 44 timestamp_, | |
| 45 origin_, | |
| 46 request_)); | |
| 47 } | 44 } |
| 48 | 45 |
| 49 } // namespace syncer | 46 } // namespace syncer |
| OLD | NEW |