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

Side by Side Diff: chrome/browser/sync/profile_sync_service_android.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 bool IsSyncAllowedByAndroid() const; 186 bool IsSyncAllowedByAndroid() const;
187 187
188 // A reference to the Chrome profile object. 188 // A reference to the Chrome profile object.
189 Profile* profile_; 189 Profile* profile_;
190 190
191 // A reference to the sync service for this profile. 191 // A reference to the sync service for this profile.
192 ProfileSyncService* sync_service_; 192 ProfileSyncService* sync_service_;
193 193
194 // The class that handles getting, setting, and persisting sync 194 // The class that handles getting, setting, and persisting sync
195 // preferences. 195 // preferences.
196 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; 196 std::unique_ptr<sync_driver::SyncPrefs> sync_prefs_;
197 197
198 // Java-side ProfileSyncService object. 198 // Java-side ProfileSyncService object.
199 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; 199 JavaObjectWeakGlobalRef weak_java_profile_sync_service_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); 201 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid);
202 }; 202 };
203 203
204 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ 204 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/chrome_sync_client_unittest.cc ('k') | chrome/browser/sync/profile_sync_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698