summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/search_engines/template_url_table_model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/search_engines/template_url_table_model.cc')
-rw-r--r--chrome/browser/ui/search_engines/template_url_table_model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/search_engines/template_url_table_model.cc b/chrome/browser/ui/search_engines/template_url_table_model.cc
index 343ed9a..08af8c6 100644
--- a/chrome/browser/ui/search_engines/template_url_table_model.cc
+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc
@@ -275,7 +275,7 @@ void TemplateURLTableModel::ModifyTemplateURL(int index,
template_url_service_->RemoveObserver(this);
template_url_service_->ResetTemplateURL(template_url, title, keyword, url);
if (template_url_service_->GetDefaultSearchProvider() == template_url &&
- !TemplateURL::SupportsReplacement(template_url)) {
+ !template_url->SupportsReplacement()) {
// The entry was the default search provider, but the url has been modified
// so that it no longer supports replacement. Reset the default search
// provider so that it doesn't point to a bogus entry.