Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / sync / glue / change_processor.cc
blobdd0d46c7952fd3efc8e554d78299e00022980262
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
3 // found in the LICENSE file.
5 #include "chrome/browser/sync/glue/change_processor.h"
6 #include "chrome/browser/profiles/profile.h"
8 namespace browser_sync {
10 ChangeProcessor::ChangeProcessor(DataTypeErrorHandler* error_handler)
11 : error_handler_(error_handler),
12 share_handle_(NULL) {}
14 ChangeProcessor::~ChangeProcessor() {
17 void ChangeProcessor::Start(Profile* profile,
18 syncer::UserShare* share_handle) {
19 DCHECK(!share_handle_);
20 share_handle_ = share_handle;
21 StartImpl(profile);
24 // Not implemented by default.
25 void ChangeProcessor::CommitChangesFromSyncModel() {}
27 DataTypeErrorHandler* ChangeProcessor::error_handler() const {
28 return error_handler_;
31 syncer::UserShare* ChangeProcessor::share_handle() const {
32 return share_handle_;
35 } // namespace browser_sync