OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/clear_server_data_request_event.h" | 5 #include "sync/internal_api/public/events/clear_server_data_request_event.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "sync/protocol/proto_value_conversions.h" | 8 #include "sync/protocol/proto_value_conversions.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
(...skipping 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 std::string ClearServerDataRequestEvent::GetType() const { | 23 std::string ClearServerDataRequestEvent::GetType() const { |
24 return "ClearServerData Request"; | 24 return "ClearServerData Request"; |
25 } | 25 } |
26 | 26 |
27 std::string ClearServerDataRequestEvent::GetDetails() const { | 27 std::string ClearServerDataRequestEvent::GetDetails() const { |
28 return std::string(); | 28 return std::string(); |
29 } | 29 } |
30 | 30 |
31 scoped_ptr<base::DictionaryValue> ClearServerDataRequestEvent::GetProtoMessage() | 31 std::unique_ptr<base::DictionaryValue> |
32 const { | 32 ClearServerDataRequestEvent::GetProtoMessage() const { |
33 return scoped_ptr<base::DictionaryValue>( | 33 return std::unique_ptr<base::DictionaryValue>( |
34 ClientToServerMessageToValue(request_, false)); | 34 ClientToServerMessageToValue(request_, false)); |
35 } | 35 } |
36 | 36 |
37 scoped_ptr<ProtocolEvent> ClearServerDataRequestEvent::Clone() const { | 37 std::unique_ptr<ProtocolEvent> ClearServerDataRequestEvent::Clone() const { |
38 return scoped_ptr<ProtocolEvent>( | 38 return std::unique_ptr<ProtocolEvent>( |
39 new ClearServerDataRequestEvent(timestamp_, request_)); | 39 new ClearServerDataRequestEvent(timestamp_, request_)); |
40 } | 40 } |
41 | 41 |
42 } // namespace syncer | 42 } // namespace syncer |
OLD | NEW |