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

Unified Diff: chrome/browser/search_engines/template_url_parser.cc

Issue 10381016: Remove the "autogenerate keyword" bit on TemplateURL. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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/search_engines/template_url_parser.cc
===================================================================
--- chrome/browser/search_engines/template_url_parser.cc (revision 135424)
+++ chrome/browser/search_engines/template_url_parser.cc (working copy)
@@ -309,9 +309,7 @@
if (suggestion_method_ == TemplateURLParsingContext::POST)
data_.suggestions_url.clear();
- string16 keyword(TemplateURLService::GenerateKeyword(url, false));
- DCHECK(!keyword.empty());
- data_.SetKeyword(keyword);
+ data_.SetKeyword(TemplateURLService::GenerateKeyword(url));
data_.show_in_default_list = show_in_default_list;
return new TemplateURL(profile, data_);
}

Powered by Google App Engine
This is Rietveld 408576698