| Index: chrome/browser/ui/search_engines/template_url_table_model.cc
|
| ===================================================================
|
| --- chrome/browser/ui/search_engines/template_url_table_model.cc (revision 130759)
|
| +++ chrome/browser/ui/search_engines/template_url_table_model.cc (working copy)
|
| @@ -254,10 +254,11 @@
|
| const std::string& url) {
|
| DCHECK(index >= 0 && index <= RowCount());
|
| template_url_service_->RemoveObserver(this);
|
| - TemplateURL* turl = new TemplateURL();
|
| - turl->set_short_name(short_name);
|
| - turl->set_keyword(keyword);
|
| - turl->SetURL(url);
|
| + TemplateURLData data;
|
| + data.short_name = short_name;
|
| + data.SetKeyword(keyword);
|
| + data.SetURL(url);
|
| + TemplateURL* turl = new TemplateURL(data);
|
| template_url_service_->Add(turl);
|
| ModelEntry* entry = new ModelEntry(this, turl);
|
| template_url_service_->AddObserver(this);
|
|
|