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

Unified Diff: chrome/browser/sync/profile_sync_test_util.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
Index: chrome/browser/sync/profile_sync_test_util.h
diff --git a/chrome/browser/sync/profile_sync_test_util.h b/chrome/browser/sync/profile_sync_test_util.h
index 78fc05b3ed943f16e54f0a49bb42b610e46cec00..9c665f4460f42318d39d3f509ff13fddb00d2cfd 100644
--- a/chrome/browser/sync/profile_sync_test_util.h
+++ b/chrome/browser/sync/profile_sync_test_util.h
@@ -5,10 +5,10 @@
#ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_
#define CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_
+#include <memory>
#include <string>
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "components/browser_sync/browser/profile_sync_service_mock.h"
#include "content/public/browser/browser_thread.h"
@@ -46,16 +46,16 @@ ACTION(QuitUIMessageLoop) {
ProfileSyncService::InitParams CreateProfileSyncServiceParamsForTest(
Profile* profile);
ProfileSyncService::InitParams CreateProfileSyncServiceParamsForTest(
- scoped_ptr<sync_driver::SyncClient> sync_client,
+ std::unique_ptr<sync_driver::SyncClient> sync_client,
Profile* profile);
// A utility used by sync tests to create a TestingProfile with a Google
// Services username stored in a (Testing)PrefService.
-scoped_ptr<TestingProfile> MakeSignedInTestingProfile();
+std::unique_ptr<TestingProfile> MakeSignedInTestingProfile();
// Helper routine to be used in conjunction with
// BrowserContextKeyedServiceFactory::SetTestingFactory().
-scoped_ptr<KeyedService> BuildMockProfileSyncService(
+std::unique_ptr<KeyedService> BuildMockProfileSyncService(
content::BrowserContext* context);
#endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_
« no previous file with comments | « chrome/browser/sync/profile_sync_service_factory_unittest.cc ('k') | chrome/browser/sync/profile_sync_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698