Index: chrome/browser/search/hotword_service_unittest.cc |
diff --git a/chrome/browser/search/hotword_service_unittest.cc b/chrome/browser/search/hotword_service_unittest.cc |
index 588706c1c186e7f410230b12f649a6b8853da2fb..3172d24a33ac250b7cb49d67b1d09ad2ad53e307 100644 |
--- a/chrome/browser/search/hotword_service_unittest.cc |
+++ b/chrome/browser/search/hotword_service_unittest.cc |
@@ -109,8 +109,10 @@ class MockHotwordService : public HotwordService { |
std::string extension_id_; |
}; |
-KeyedService* BuildMockHotwordService(content::BrowserContext* context) { |
- return new MockHotwordService(static_cast<Profile*>(context)); |
+scoped_ptr<KeyedService> BuildMockHotwordService( |
+ content::BrowserContext* context) { |
+ return make_scoped_ptr( |
+ new MockHotwordService(static_cast<Profile*>(context))); |
} |
} // namespace |