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 "components/sync/engine/model_safe_worker.h" | 5 #include "components/sync/engine/model_safe_worker.h" |
6 | 6 |
7 #include <memory> | |
8 | |
9 #include "base/bind.h" | 7 #include "base/bind.h" |
10 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
12 #include "base/values.h" | 10 #include "base/values.h" |
13 | 11 |
14 namespace syncer { | 12 namespace syncer { |
15 | 13 |
16 std::unique_ptr<base::DictionaryValue> ModelSafeRoutingInfoToValue( | 14 std::unique_ptr<base::DictionaryValue> ModelSafeRoutingInfoToValue( |
17 const ModelSafeRoutingInfo& routing_info) { | 15 const ModelSafeRoutingInfo& routing_info) { |
18 std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); | 16 std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 return; | 189 return; |
192 DCHECK(working_task_runner_->BelongsToCurrentThread()); | 190 DCHECK(working_task_runner_->BelongsToCurrentThread()); |
193 } | 191 } |
194 | 192 |
195 DCHECK(stopped_); | 193 DCHECK(stopped_); |
196 base::MessageLoop::current()->RemoveDestructionObserver(this); | 194 base::MessageLoop::current()->RemoveDestructionObserver(this); |
197 unregister_done_callback.Run(GetModelSafeGroup()); | 195 unregister_done_callback.Run(GetModelSafeGroup()); |
198 } | 196 } |
199 | 197 |
200 } // namespace syncer | 198 } // namespace syncer |
OLD | NEW |