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

Side by Side Diff: components/sync/api/fake_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/fake_model_type_service.h" 5 #include "components/sync/api/fake_model_type_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "sync/api/fake_model_type_change_processor.h" 11 #include "components/sync/api/fake_model_type_change_processor.h"
12 12
13 namespace syncer_v2 { 13 namespace syncer_v2 {
14 14
15 FakeModelTypeService::FakeModelTypeService() 15 FakeModelTypeService::FakeModelTypeService()
16 : FakeModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {} 16 : FakeModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {}
17 17
18 FakeModelTypeService::FakeModelTypeService( 18 FakeModelTypeService::FakeModelTypeService(
19 const ChangeProcessorFactory& change_processor_factory) 19 const ChangeProcessorFactory& change_processor_factory)
20 : ModelTypeService(change_processor_factory, syncer::PREFERENCES) {} 20 : ModelTypeService(change_processor_factory, syncer::PREFERENCES) {}
21 21
(...skipping 25 matching lines...) Expand all
47 return std::string(); 47 return std::string();
48 } 48 }
49 49
50 void FakeModelTypeService::OnChangeProcessorSet() {} 50 void FakeModelTypeService::OnChangeProcessorSet() {}
51 51
52 bool FakeModelTypeService::HasChangeProcessor() const { 52 bool FakeModelTypeService::HasChangeProcessor() const {
53 return change_processor() != nullptr; 53 return change_processor() != nullptr;
54 } 54 }
55 55
56 } // namespace syncer_v2 56 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « components/sync/api/fake_model_type_service.h ('k') | components/sync/api/fake_sync_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698