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

Unified Diff: chrome/browser/sync/chrome_sync_client.h

Issue 1882243004: Convert //chrome/browser/sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/chrome_sync_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/chrome_sync_client.h
diff --git a/chrome/browser/sync/chrome_sync_client.h b/chrome/browser/sync/chrome_sync_client.h
index 6c2ac4aa8d1680fb75ea1138f76397190d9fcac6..7ceeaf6714ac250adbee140fed3b4d0eee70aebd 100644
--- a/chrome/browser/sync/chrome_sync_client.h
+++ b/chrome/browser/sync/chrome_sync_client.h
@@ -63,7 +63,7 @@ class ChromeSyncClient : public sync_driver::SyncClient {
void SetBrowsingDataRemoverObserverForTesting(
BrowsingDataRemover::Observer* observer);
void SetSyncApiComponentFactoryForTesting(
- scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory);
+ std::unique_ptr<sync_driver::SyncApiComponentFactory> component_factory);
// Iterates over all of the profiles that have been loaded so far, and
// extracts their tracker if present. If some profiles don't have trackers, no
@@ -89,14 +89,14 @@ class ChromeSyncClient : public sync_driver::SyncClient {
Profile* const profile_;
// The sync api component factory in use by this client.
- scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory_;
+ std::unique_ptr<sync_driver::SyncApiComponentFactory> component_factory_;
// Members that must be fetched on the UI thread but accessed on their
// respective backend threads.
scoped_refptr<autofill::AutofillWebDataService> web_data_service_;
scoped_refptr<password_manager::PasswordStore> password_store_;
- scoped_ptr<sync_sessions::SyncSessionsClient> sync_sessions_client_;
+ std::unique_ptr<sync_sessions::SyncSessionsClient> sync_sessions_client_;
// Generates and monitors the ExtensionsActivity object used by sync.
ExtensionsActivityMonitor extensions_activity_monitor_;
« no previous file with comments | « no previous file | chrome/browser/sync/chrome_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698