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 84444468e2f7634ad895d0752355303babf0c7d7..9d53410d4cfbd88bdd56dd4b9d934da979637274 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 |