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

Unified Diff: chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc

Issue 1165913002: [Cleanup] Used scoped pointers in KeyedServiceFactory's SetTestingFactory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish renaming profile -> context Created 5 years, 6 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/extensions/api/preferences_private/preferences_private_apitest.cc
diff --git a/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc b/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
index 89bc5e8115044011cfdcaaec74afc82550788c6b..a7582de0b55aa0223ea9d21e8a6bb03f62a015c8 100644
--- a/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
+++ b/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
@@ -8,6 +8,7 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/values.h"
@@ -54,9 +55,10 @@ class FakeProfileSyncService : public ProfileSyncService {
~FakeProfileSyncService() override {}
- static KeyedService* BuildFakeProfileSyncService(
+ static scoped_ptr<KeyedService> BuildFakeProfileSyncService(
content::BrowserContext* context) {
- return new FakeProfileSyncService(static_cast<Profile*>(context));
+ return make_scoped_ptr(
+ new FakeProfileSyncService(static_cast<Profile*>(context)));
}
void set_sync_initialized(bool sync_initialized) {

Powered by Google App Engine
This is Rietveld 408576698