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

Side by Side Diff: components/sync_driver/change_processor.cc

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_driver/change_processor.h" 5 #include "components/sync_driver/change_processor.h"
6 6
7 namespace browser_sync { 7 namespace sync_driver {
8 8
9 ChangeProcessor::ChangeProcessor(DataTypeErrorHandler* error_handler) 9 ChangeProcessor::ChangeProcessor(DataTypeErrorHandler* error_handler)
10 : error_handler_(error_handler), 10 : error_handler_(error_handler),
11 share_handle_(NULL) {} 11 share_handle_(NULL) {}
12 12
13 ChangeProcessor::~ChangeProcessor() { 13 ChangeProcessor::~ChangeProcessor() {
14 } 14 }
15 15
16 void ChangeProcessor::Start(syncer::UserShare* share_handle) { 16 void ChangeProcessor::Start(syncer::UserShare* share_handle) {
17 DCHECK(!share_handle_); 17 DCHECK(!share_handle_);
18 share_handle_ = share_handle; 18 share_handle_ = share_handle;
19 StartImpl(); 19 StartImpl();
20 } 20 }
21 21
22 // Not implemented by default. 22 // Not implemented by default.
23 void ChangeProcessor::CommitChangesFromSyncModel() {} 23 void ChangeProcessor::CommitChangesFromSyncModel() {}
24 24
25 DataTypeErrorHandler* ChangeProcessor::error_handler() const { 25 DataTypeErrorHandler* ChangeProcessor::error_handler() const {
26 return error_handler_; 26 return error_handler_;
27 } 27 }
28 28
29 syncer::UserShare* ChangeProcessor::share_handle() const { 29 syncer::UserShare* ChangeProcessor::share_handle() const {
30 return share_handle_; 30 return share_handle_;
31 } 31 }
32 32
33 } // namespace browser_sync 33 } // namespace sync_driver
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