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

Issue 171753002: Omnibox: SearchProvider: Fix Navsuggestions in Prevent-Inlining Mode (Closed)

Created:
6 years, 10 months ago by Mark P
Modified:
6 years, 10 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Omnibox: SearchProvider: Fix Navsuggestions in Prevent-Inlining Mode Precisely, navsuggestions that look like a user's input (trailing slash or not, omitted scheme/droppable prefix)--are effectively a what-you-typed suggestion--sometimes were previously erroneously marked as "not allowed to be the default match" when the user is backspacing (i.e., prevent_inline_autocompletion mode). This causes some wonkiness, especially now that reorder mode is default. See listed bug. This fixes the trouble and added/corrects tests. BUG=344585 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252486

Patch Set 1 #

Total comments: 8

Patch Set 2 : new approach #

Patch Set 3 : reupload #

Patch Set 4 : again #

Total comments: 2

Patch Set 5 : wrapping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -100 lines) Patch
M chrome/browser/autocomplete/base_search_provider.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 1 chunk +10 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 3 chunks +115 lines, -90 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Mark P
Peter, Can you review this ASAP? I think I want to request it gets merged ...
6 years, 10 months ago (2014-02-19 00:26:19 UTC) #1
Peter Kasting
This feels really fragile. https://codereview.chromium.org/171753002/diff/1/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/171753002/diff/1/chrome/browser/autocomplete/search_provider.cc#newcode1514 chrome/browser/autocomplete/search_provider.cc:1514: // Actual input to use ...
6 years, 10 months ago (2014-02-19 20:39:31 UTC) #2
Mark P
I need to think more about your comments and the alternates I raised. In the ...
6 years, 10 months ago (2014-02-19 23:23:01 UTC) #3
Peter Kasting
On 2014/02/19 23:23:01, Mark P wrote: > This makes me think of an alternate implementation. ...
6 years, 10 months ago (2014-02-20 01:11:55 UTC) #4
Mark P
I like this new approach a lot more. I think you will too. --mark
6 years, 10 months ago (2014-02-20 20:30:46 UTC) #5
Peter Kasting
LGTM https://codereview.chromium.org/171753002/diff/180001/chrome/browser/autocomplete/base_search_provider.cc File chrome/browser/autocomplete/base_search_provider.cc (right): https://codereview.chromium.org/171753002/diff/180001/chrome/browser/autocomplete/base_search_provider.cc#newcode212 chrome/browser/autocomplete/base_search_provider.cc:212: size_t match_start = (prefix == NULL) ? formatted_url_.find(input_text) ...
6 years, 10 months ago (2014-02-20 22:55:31 UTC) #6
Mark P
https://codereview.chromium.org/171753002/diff/180001/chrome/browser/autocomplete/base_search_provider.cc File chrome/browser/autocomplete/base_search_provider.cc (right): https://codereview.chromium.org/171753002/diff/180001/chrome/browser/autocomplete/base_search_provider.cc#newcode212 chrome/browser/autocomplete/base_search_provider.cc:212: size_t match_start = (prefix == NULL) ? formatted_url_.find(input_text) On ...
6 years, 10 months ago (2014-02-20 23:20:39 UTC) #7
Mark P
The CQ bit was checked by mpearson@chromium.org
6 years, 10 months ago (2014-02-21 01:49:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/171753002/240001
6 years, 10 months ago (2014-02-21 01:50:23 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-02-21 03:48:08 UTC) #10
Message was sent while issue was closed.
Change committed as 252486

Powered by Google App Engine
This is Rietveld 408576698