Index: chrome/browser/autocomplete/history_quick_provider_unittest.cc |
diff --git a/chrome/browser/autocomplete/history_quick_provider_unittest.cc b/chrome/browser/autocomplete/history_quick_provider_unittest.cc |
index 0cb203b85f54cf189c3fdfd2ad08dfda6339e748..eedeb29843e1617a3fe4d2471015d5591586d5b7 100644 |
--- a/chrome/browser/autocomplete/history_quick_provider_unittest.cc |
+++ b/chrome/browser/autocomplete/history_quick_provider_unittest.cc |
@@ -169,15 +169,15 @@ class HistoryQuickProviderTest : public testing::Test { |
std::set<std::string> matches_; |
}; |
- static KeyedService* CreateTemplateURLService( |
+ static scoped_ptr<KeyedService> CreateTemplateURLService( |
content::BrowserContext* context) { |
Profile* profile = static_cast<Profile*>(context); |
- return new TemplateURLService( |
+ return make_scoped_ptr(new TemplateURLService( |
profile->GetPrefs(), make_scoped_ptr(new SearchTermsData), NULL, |
scoped_ptr<TemplateURLServiceClient>(new ChromeTemplateURLServiceClient( |
HistoryServiceFactory::GetForProfile( |
profile, ServiceAccessType::EXPLICIT_ACCESS))), |
- NULL, NULL, base::Closure()); |
+ NULL, NULL, base::Closure())); |
} |
void SetUp() override; |