| Index: components/sync/test/engine/mock_connection_manager.cc
|
| diff --git a/components/sync/test/engine/mock_connection_manager.cc b/components/sync/test/engine/mock_connection_manager.cc
|
| index d50e2988591db730c36d22e616583ba0315361f9..79b5b3a05f529f8a92a9a2fa52ace69203e72c7a 100644
|
| --- a/components/sync/test/engine/mock_connection_manager.cc
|
| +++ b/components/sync/test/engine/mock_connection_manager.cc
|
| @@ -7,6 +7,7 @@
|
| #include <map>
|
|
|
| #include "base/location.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "components/sync/engine_impl/syncer_proto_util.h"
|
| #include "components/sync/protocol/bookmark_specifics.pb.h"
|
| @@ -594,7 +595,7 @@ void MockConnectionManager::ProcessCommit(
|
| map<string, string> changed_ids;
|
| const CommitMessage& commit_message = csm->commit();
|
| CommitResponse* commit_response = response_buffer->mutable_commit();
|
| - commit_messages_.push_back(new CommitMessage);
|
| + commit_messages_.push_back(base::MakeUnique<CommitMessage>());
|
| commit_messages_.back()->CopyFrom(commit_message);
|
| map<string, sync_pb::CommitResponse_EntryResponse*> response_map;
|
| for (int i = 0; i < commit_message.entries_size(); i++) {
|
| @@ -645,7 +646,8 @@ void MockConnectionManager::ProcessCommit(
|
| er->set_id_string(new_id);
|
| }
|
| }
|
| - commit_responses_.push_back(new CommitResponse(*commit_response));
|
| + commit_responses_.push_back(
|
| + base::MakeUnique<CommitResponse>(*commit_response));
|
|
|
| if (commit_client_command_) {
|
| response_buffer->mutable_client_command()->CopyFrom(
|
|
|