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

Unified Diff: chrome/browser/search_engines/search_host_to_urls_map.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/search_host_to_urls_map.cc
===================================================================
--- chrome/browser/search_engines/search_host_to_urls_map.cc (revision 135424)
+++ chrome/browser/search_engines/search_host_to_urls_map.cc (working copy)
@@ -27,6 +27,7 @@
const SearchTermsData& search_terms_data) {
DCHECK(initialized_);
DCHECK(template_url);
+ DCHECK(!template_url->IsExtensionKeyword());
const GURL url(TemplateURLService::GenerateSearchURLUsingTermsData(
template_url, search_terms_data));
@@ -39,6 +40,7 @@
void SearchHostToURLsMap::Remove(TemplateURL* template_url) {
DCHECK(initialized_);
DCHECK(template_url);
+ DCHECK(!template_url->IsExtensionKeyword());
const GURL url(TemplateURLService::GenerateSearchURL(template_url));
if (!url.is_valid() || !url.has_host())

Powered by Google App Engine
This is Rietveld 408576698