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

Side by Side Diff: chrome/browser/sync/glue/generic_change_processor.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the previous fix Created 9 years, 7 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
(Empty)
1 // Copyright (c) 2011 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 "chrome/browser/sync/glue/generic_change_processor.h"
6
7 #include "chrome/browser/sync/glue/model_associator.h"
8
9 namespace browser_sync {
10
11 GenericChangeProcessor::GenericChangeProcessor(
12 UnrecoverableErrorHandler* error_handler,
13 NewAssociatorInterface* model_associator)
14 : ChangeProcessor(error_handler),
15 model_associator_(model_associator) {
16 DCHECK(model_associator_);
17 }
18 GenericChangeProcessor::~GenericChangeProcessor() {
19 model_associator_ = NULL;
20 }
21
22 void GenericChangeProcessor::ApplyChangesFromSyncModel(
23 const sync_api::BaseTransaction* trans,
24 const sync_api::SyncManager::ChangeRecord* changes,
25 int change_count) {
26 model_associator_->ApplyChangesFromSync(trans, changes, change_count);
27 }
28
29 void GenericChangeProcessor::StartImpl(Profile* profile) {}
30
31 void GenericChangeProcessor::StopImpl() {}
32
33 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698