diff options
| author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-25 05:33:05 +0000 |
|---|---|---|
| committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-25 05:33:05 +0000 |
| commit | 33d24e55bf85ee985972563503f977d35134c815 (patch) | |
| tree | 99a4465609535ecfa4a3acc4897d64cff0c7ca79 /chrome/browser/autocomplete/autocomplete.cc | |
| parent | 0b0a7d7b536d44cb51a892009368f8ec14c9ab95 (diff) | |
| download | chromium_src-33d24e55bf85ee985972563503f977d35134c815.zip chromium_src-33d24e55bf85ee985972563503f977d35134c815.tar.gz chromium_src-33d24e55bf85ee985972563503f977d35134c815.tar.bz2 | |
Ctrl-based actions should take precedence over ctrl-enter
When the user presses ctrl, prefer (keeping) inline autocomplete
matches to (new, surprising) exact matches that include the
desired TLD.
BUG=52566
TEST=none
Review URL: http://codereview.chromium.org/3152029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete.cc')
| -rw-r--r-- | chrome/browser/autocomplete/autocomplete.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.cc b/chrome/browser/autocomplete/autocomplete.cc index e15a190..d45c4a0 100644 --- a/chrome/browser/autocomplete/autocomplete.cc +++ b/chrome/browser/autocomplete/autocomplete.cc @@ -903,10 +903,8 @@ void AutocompleteController::CommitIfQueryHasNeverBeenCommitted() { void AutocompleteController::OnProviderUpdate(bool updated_matches) { CheckIfDone(); - if (updated_matches || done_) { + if (updated_matches || done_) UpdateLatestResult(false); - return; - } } void AutocompleteController::UpdateLatestResult(bool is_synchronous_pass) { |
