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/api/model_type_service.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "sync/api/model_type_service.h" 5 #include "components/sync/api/model_type_service.h"
6 6
7 #include "sync/api/model_type_change_processor.h" 7 #include "components/sync/api/model_type_change_processor.h"
8 #include "sync/internal_api/public/data_type_error_handler.h" 8 #include "components/sync/core/data_type_error_handler.h"
9 9
10 namespace syncer_v2 { 10 namespace syncer_v2 {
11 11
12 ModelTypeService::ModelTypeService( 12 ModelTypeService::ModelTypeService(
13 const ChangeProcessorFactory& change_processor_factory, 13 const ChangeProcessorFactory& change_processor_factory,
14 syncer::ModelType type) 14 syncer::ModelType type)
15 : change_processor_factory_(change_processor_factory), type_(type) {} 15 : change_processor_factory_(change_processor_factory), type_(type) {}
16 16
17 ModelTypeService::~ModelTypeService() {} 17 ModelTypeService::~ModelTypeService() {}
18 18
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 ModelTypeChangeProcessor* ModelTypeService::change_processor() const { 51 ModelTypeChangeProcessor* ModelTypeService::change_processor() const {
52 return change_processor_.get(); 52 return change_processor_.get();
53 } 53 }
54 54
55 void ModelTypeService::clear_change_processor() { 55 void ModelTypeService::clear_change_processor() {
56 change_processor_.reset(); 56 change_processor_.reset();
57 } 57 }
58 58
59 } // namespace syncer_v2 59 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « components/sync/api/model_type_service.h ('k') | components/sync/api/model_type_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698