Index: chrome/browser/search_engines/search_provider_install_data_unittest.cc |
=================================================================== |
--- chrome/browser/search_engines/search_provider_install_data_unittest.cc (revision 130759) |
+++ chrome/browser/search_engines/search_provider_install_data_unittest.cc (working copy) |
@@ -232,10 +232,11 @@ |
TemplateURL* SearchProviderInstallDataTest::AddNewTemplateURL( |
const std::string& url, |
const string16& keyword) { |
- TemplateURL* t_url = new TemplateURL(); |
- t_url->set_short_name(keyword); |
- t_url->set_keyword(keyword); |
- t_url->SetURL(url); |
+ TemplateURLData data; |
+ data.short_name = keyword; |
+ data.SetKeyword(keyword); |
+ data.SetURL(url); |
+ TemplateURL* t_url = new TemplateURL(data); |
util_.model()->Add(t_url); |
return t_url; |
} |