Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: components/sync/driver/change_processor.cc

Issue 2508003002: [Sync] Move ChangeProcessor to model/. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/sync/driver/change_processor.h"
6
7 #include <utility>
8
9 namespace syncer {
10
11 ChangeProcessor::ChangeProcessor(
12 std::unique_ptr<DataTypeErrorHandler> error_handler)
13 : error_handler_(std::move(error_handler)), share_handle_(nullptr) {}
14
15 ChangeProcessor::~ChangeProcessor() {}
16
17 void ChangeProcessor::Start(UserShare* share_handle) {
18 DCHECK(!share_handle_);
19 share_handle_ = share_handle;
20 StartImpl();
21 }
22
23 // Not implemented by default.
24 void ChangeProcessor::CommitChangesFromSyncModel() {}
25
26 DataTypeErrorHandler* ChangeProcessor::error_handler() const {
27 return error_handler_.get();
28 }
29
30 UserShare* ChangeProcessor::share_handle() const {
31 return share_handle_;
32 }
33
34 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/change_processor.h ('k') | components/sync/driver/change_processor_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698