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

Issue 2179063003: Switching out of keyword mode shouldn't count as a minimal change. (Closed)

Created:
4 years, 4 months ago by Peter Kasting
Modified:
4 years, 4 months ago
Reviewers:
Mark P
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switching out of keyword mode shouldn't count as a minimal change. Previously, if you used space to get into keyword mode and later backspace at the beginning of the keyword to get out of keyword mode, the backspace would trigger an autocompletion run with |minimal_changes| == true. This isn't really correct; switching out of keyword mode can affect the results and scoring significantly. In certain cases, the old route triggered a DCHECK, because the search provider didn't wipe the old keyword matches across |minimal_changes|, but the new input had no corresponding keyword input text. I looked briefly at leaving this as a "minimal change" and instead detecting and handling it inside the relevant provider(s), but decided that was error-prone and not really as semantically accurate. Plus the potential additional flicker here is fairly minor, as people don't usually exit keyword mode via backspace in this way. BUG=607379 TEST=In a debug build, type "google.comgoogle.com" (no quotes) into the omnibox, place the cursor between the two "google.com"s, hit space, then hit backspace. Chrome should not DCHECK. Committed: https://crrev.com/1919906f73c5c4919651c0d87185e6fb927384ce Cr-Commit-Position: refs/heads/master@{#407888}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M components/omnibox/browser/autocomplete_controller.cc View 3 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
Peter Kasting
4 years, 4 months ago (2016-07-26 02:45:58 UTC) #3
Mark P
lgtm I agree with this change. Thanks for the detailed explanation. --mark
4 years, 4 months ago (2016-07-26 19:42:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2179063003/1
4 years, 4 months ago (2016-07-26 19:53:32 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-26 19:59:33 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 20:01:47 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1919906f73c5c4919651c0d87185e6fb927384ce
Cr-Commit-Position: refs/heads/master@{#407888}

Powered by Google App Engine
This is Rietveld 408576698