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

Unified Diff: chrome/browser/sync/glue/autofill_data_type_controller_unittest.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/sync/glue/autofill_data_type_controller_unittest.cc
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
index 972d169b60c40f1b87acd52d704dcbb1f3ec1892..d218916fbb205506507c0a2df0df252f13371d1e 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
@@ -6,6 +6,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "chrome/browser/chrome_notification_types.h"
@@ -107,8 +108,8 @@ class FakeWebDataService : public AutofillWebDataService {
class MockWebDataServiceWrapperSyncable : public MockWebDataServiceWrapper {
public:
- static KeyedService* Build(content::BrowserContext* profile) {
- return new MockWebDataServiceWrapperSyncable();
+ static scoped_ptr<KeyedService> Build(content::BrowserContext* profile) {
+ return make_scoped_ptr(new MockWebDataServiceWrapperSyncable());
}
MockWebDataServiceWrapperSyncable()

Powered by Google App Engine
This is Rietveld 408576698