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

Unified Diff: history_quick_provider.cc

Issue 7458007: Workaround for Typing Slowdown (Closed) Base URL: svn://svn.chromium.org/chrome/branches/782/src/chrome/browser/autocomplete/
Patch Set: Created 9 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: history_quick_provider.cc
===================================================================
--- history_quick_provider.cc (revision 93131)
+++ history_quick_provider.cc (working copy)
@@ -96,6 +96,10 @@
void HistoryQuickProvider::DoAutocomplete() {
// Get the matching URLs from the DB.
string16 term_string = autocomplete_input_.text();
+ // TODO(mrossetti): Temporary workaround for http://crbug.com/88498.
+ // Just give up after 50 characters.
+ if (term_string.size() > 50)
+ return;
term_string = UnescapeURLComponent(term_string,
UnescapeRule::SPACES | UnescapeRule::URL_SPECIAL_CHARS);
history::InMemoryURLIndex::String16Vector terms(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698