Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1127)

Unified Diff: chrome/browser/ui/search_engines/template_url_table_model.cc

Issue 1135163002: Omnibox - Strip Extra Whitespace from Custom Search Engine Names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search_engines/template_url_table_model.cc
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 83492eac0028dc279e903e915670ff9da051f497..24a73e96296dcd70d9f4f017750f5ef122c6d5b2 100644
--- a/chrome/browser/ui/search_engines/template_url_table_model.cc
+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc
@@ -260,7 +260,7 @@ void TemplateURLTableModel::Add(int index,
DCHECK(!url.empty());
template_url_service_->RemoveObserver(this);
TemplateURLData data;
- data.short_name = short_name;
+ data.SetShortName(short_name);
data.SetKeyword(keyword);
data.SetURL(url);
TemplateURL* turl = new TemplateURL(data);

Powered by Google App Engine
This is Rietveld 408576698