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

Side by Side Diff: ios/chrome/browser/sync/ios_chrome_sync_client.h

Issue 1861593005: Convert //ios 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 IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ 5 #ifndef IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__
6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ 6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( 52 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
53 syncer::ModelType type) override; 53 syncer::ModelType type) override;
54 syncer_v2::ModelTypeService* GetModelTypeServiceForType( 54 syncer_v2::ModelTypeService* GetModelTypeServiceForType(
55 syncer::ModelType type) override; 55 syncer::ModelType type) override;
56 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( 56 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup(
57 syncer::ModelSafeGroup group, 57 syncer::ModelSafeGroup group,
58 syncer::WorkerLoopDestructionObserver* observer) override; 58 syncer::WorkerLoopDestructionObserver* observer) override;
59 sync_driver::SyncApiComponentFactory* GetSyncApiComponentFactory() override; 59 sync_driver::SyncApiComponentFactory* GetSyncApiComponentFactory() override;
60 60
61 void SetSyncApiComponentFactoryForTesting( 61 void SetSyncApiComponentFactoryForTesting(
62 scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory); 62 std::unique_ptr<sync_driver::SyncApiComponentFactory> component_factory);
63 63
64 // Iterates over browser states and returns any trackers that can be found. 64 // Iterates over browser states and returns any trackers that can be found.
65 static void GetDeviceInfoTrackers( 65 static void GetDeviceInfoTrackers(
66 std::vector<const sync_driver::DeviceInfoTracker*>* trackers); 66 std::vector<const sync_driver::DeviceInfoTracker*>* trackers);
67 67
68 private: 68 private:
69 ios::ChromeBrowserState* const browser_state_; 69 ios::ChromeBrowserState* const browser_state_;
70 70
71 // The sync api component factory in use by this client. 71 // The sync api component factory in use by this client.
72 scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory_; 72 std::unique_ptr<sync_driver::SyncApiComponentFactory> component_factory_;
73 73
74 // Members that must be fetched on the UI thread but accessed on their 74 // Members that must be fetched on the UI thread but accessed on their
75 // respective backend threads. 75 // respective backend threads.
76 scoped_refptr<autofill::AutofillWebDataService> web_data_service_; 76 scoped_refptr<autofill::AutofillWebDataService> web_data_service_;
77 scoped_refptr<password_manager::PasswordStore> password_store_; 77 scoped_refptr<password_manager::PasswordStore> password_store_;
78 78
79 scoped_ptr<sync_sessions::SyncSessionsClient> sync_sessions_client_; 79 std::unique_ptr<sync_sessions::SyncSessionsClient> sync_sessions_client_;
80 80
81 const scoped_refptr<syncer::ExtensionsActivity> dummy_extensions_activity_; 81 const scoped_refptr<syncer::ExtensionsActivity> dummy_extensions_activity_;
82 82
83 base::WeakPtrFactory<IOSChromeSyncClient> weak_ptr_factory_; 83 base::WeakPtrFactory<IOSChromeSyncClient> weak_ptr_factory_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(IOSChromeSyncClient); 85 DISALLOW_COPY_AND_ASSIGN(IOSChromeSyncClient);
86 }; 86 };
87 87
88 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ 88 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698