summaryrefslogtreecommitdiffstats
path: root/sync/engine
diff options
context:
space:
mode:
Diffstat (limited to 'sync/engine')
-rw-r--r--sync/engine/model_changing_syncer_command.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/engine/model_changing_syncer_command.cc b/sync/engine/model_changing_syncer_command.cc
index c2c2750..a793626 100644
--- a/sync/engine/model_changing_syncer_command.cc
+++ b/sync/engine/model_changing_syncer_command.cc
@@ -20,7 +20,7 @@ SyncerError ModelChangingSyncerCommand::ExecuteImpl(
const std::set<ModelSafeGroup>& groups_to_change =
GetGroupsToChange(*work_session_);
for (size_t i = 0; i < session->context()->workers().size(); ++i) {
- ModelSafeWorker* worker = session->context()->workers()[i];
+ ModelSafeWorker* worker = session->context()->workers()[i].get();
ModelSafeGroup group = worker->GetModelSafeGroup();
// Skip workers whose group isn't active.
if (groups_to_change.count(group) == 0u) {