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

Side by Side Diff: components/sync_driver/fake_sync_client.h

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/sync_driver/sync_client.h" 9 #include "components/sync_driver/sync_client.h"
10 10
(...skipping 26 matching lines...) Expand all
37 syncer::ModelType type) override; 37 syncer::ModelType type) override;
38 syncer_v2::ModelTypeService* GetModelTypeServiceForType( 38 syncer_v2::ModelTypeService* GetModelTypeServiceForType(
39 syncer::ModelType type) override; 39 syncer::ModelType type) override;
40 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( 40 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup(
41 syncer::ModelSafeGroup group, 41 syncer::ModelSafeGroup group,
42 syncer::WorkerLoopDestructionObserver* observer) override; 42 syncer::WorkerLoopDestructionObserver* observer) override;
43 SyncApiComponentFactory* GetSyncApiComponentFactory() override; 43 SyncApiComponentFactory* GetSyncApiComponentFactory() override;
44 44
45 private: 45 private:
46 SyncApiComponentFactory* factory_; 46 SyncApiComponentFactory* factory_;
47 scoped_ptr<FakeSyncService> sync_service_; 47 std::unique_ptr<FakeSyncService> sync_service_;
pavely 2016/04/21 17:53:23 Could you add #include <memory> in this file?
dcheng 2016/04/21 18:30:02 Done.
48 48
49 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); 49 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient);
50 }; 50 };
51 51
52 } // namespace sync_driver 52 } // namespace sync_driver
53 53
54 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 54 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698