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

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: Really fix. And rebase 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 #include "chrome/browser/sync/syncable_service.h"
9
10 namespace browser_sync {
11
12 GenericChangeProcessor::GenericChangeProcessor(
13 SyncableService* local_service,
14 UnrecoverableErrorHandler* error_handler)
15 : ChangeProcessor(error_handler),
16 local_service_(local_service) {
17 DCHECK(local_service_);
18 }
19 GenericChangeProcessor::~GenericChangeProcessor() {
20 // Set to null to ensure it's not used after destruction.
21 local_service_ = NULL;
22 }
23
24 void GenericChangeProcessor::ApplyChangesFromSyncModel(
25 const sync_api::BaseTransaction* trans,
26 const sync_api::SyncManager::ChangeRecord* changes,
27 int change_count) {
28 local_service_->ApplyChangesFromSync(trans, changes, change_count);
29 }
30
31 void GenericChangeProcessor::StartImpl(Profile* profile) {}
32
33 void GenericChangeProcessor::StopImpl() {}
34
35 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/generic_change_processor.h ('k') | chrome/browser/sync/glue/non_frontend_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698