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

Unified Diff: ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.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: Add header 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
Index: ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h
diff --git a/ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h b/ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h
index 4968ff8127be127179a5bfa73305b9bdc199fd17..3444237b8db4f585c831e3840c5c16e1e306da0b 100644
--- a/ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h
+++ b/ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h
@@ -5,7 +5,8 @@
#ifndef IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_
#define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "components/browser_sync/browser/profile_sync_service.h"
namespace ios {
@@ -23,12 +24,12 @@ class BrowserState;
// Helper method for constructing ProfileSyncService mocks. If |sync_client|
// is null, a fresh one is created.
ProfileSyncService::InitParams CreateProfileSyncServiceParamsForTest(
- scoped_ptr<sync_driver::SyncClient> sync_client,
+ std::unique_ptr<sync_driver::SyncClient> sync_client,
ios::ChromeBrowserState* browser_state);
// Helper routine to be used in conjunction with
// BrowserStateKeyedServiceFactory::SetTestingFactory().
-scoped_ptr<KeyedService> BuildMockProfileSyncService(
+std::unique_ptr<KeyedService> BuildMockProfileSyncService(
web::BrowserState* context);
#endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698