Index: chrome/browser/autocomplete/keyword_provider.cc |
=================================================================== |
--- chrome/browser/autocomplete/keyword_provider.cc (revision 79782) |
+++ chrome/browser/autocomplete/keyword_provider.cc (working copy) |
@@ -196,6 +196,13 @@ |
continue; |
} |
} |
+ |
+ // Prune any substituting keywords if there is no substitution. |
+ if (TemplateURL::SupportsReplacement(template_url) && |
+ !input.allow_exact_keyword_match()) { |
+ i = keyword_matches.erase(i); |
+ continue; |
+ } |
++i; |
} |
if (keyword_matches.empty()) |