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

Side by Side Diff: components/sync/driver/fake_generic_change_processor.cc

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/sync/driver/fake_generic_change_processor.h" 5 #include "components/sync/driver/fake_generic_change_processor.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 FakeGenericChangeProcessorFactory::FakeGenericChangeProcessorFactory( 68 FakeGenericChangeProcessorFactory::FakeGenericChangeProcessorFactory(
69 std::unique_ptr<FakeGenericChangeProcessor> processor) 69 std::unique_ptr<FakeGenericChangeProcessor> processor)
70 : processor_(std::move(processor)) {} 70 : processor_(std::move(processor)) {}
71 71
72 FakeGenericChangeProcessorFactory::~FakeGenericChangeProcessorFactory() {} 72 FakeGenericChangeProcessorFactory::~FakeGenericChangeProcessorFactory() {}
73 73
74 std::unique_ptr<GenericChangeProcessor> 74 std::unique_ptr<GenericChangeProcessor>
75 FakeGenericChangeProcessorFactory::CreateGenericChangeProcessor( 75 FakeGenericChangeProcessorFactory::CreateGenericChangeProcessor(
76 syncer::ModelType type, 76 syncer::ModelType type,
77 syncer::UserShare* user_share, 77 syncer::UserShare* user_share,
78 syncer::DataTypeErrorHandler* error_handler, 78 std::unique_ptr<syncer::DataTypeErrorHandler> error_handler,
79 const base::WeakPtr<syncer::SyncableService>& local_service, 79 const base::WeakPtr<syncer::SyncableService>& local_service,
80 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, 80 const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
81 SyncClient* sync_client) { 81 SyncClient* sync_client) {
82 return std::move(processor_); 82 return std::move(processor_);
83 } 83 }
84 84
85 } // namespace sync_driver 85 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/fake_generic_change_processor.h ('k') | components/sync/driver/fake_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698