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

Issue 672773003: Include a URL what-you-typed option when the default search provider is not available and the input… (Closed)

Created:
6 years, 2 months ago by Chris Vasselli
Modified:
6 years, 1 month ago
Reviewers:
Mark P, *Peter Kasting
CC:
chromium-reviews, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Include a URL what-you-typed option when the default search provider is not available and the input type is unknown. Previously, when the default search provider was disabled via an enterprise policy, backspacing through the URL in the omnibar would get stuck as soon as the input got short enough to be classified as unknown. Normally, this is when the top autocomplete option would become a search for what you typed. But with search disabled, the top autocomplete option became the full previously visited URL. This change makes a URL what-you-typed autocomplete option to be provided instead under these circumstances. BUG=363656 R=mpearson@chromium.org Committed: https://crrev.com/7d6b4f8b303603f2cf27220f0871df3812880a25 Cr-Commit-Position: refs/heads/master@{#301295}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add unit tests, make suggested style and comment changes #

Total comments: 3

Patch Set 3 : Fix style nits, convert virtual to override in unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -11 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 2 4 chunks +37 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Chris Vasselli
6 years, 2 months ago (2014-10-23 19:22:30 UTC) #1
Mark P
This looks fine to me. It doesn't entirely fix the problem but it gets a ...
6 years, 2 months ago (2014-10-23 21:42:49 UTC) #4
Peter Kasting
Yeah, I think this is fine. A unittest would be good. I'd just verify that ...
6 years, 2 months ago (2014-10-24 01:10:07 UTC) #5
Chris Vasselli
Thanks! I think I've addressed all the things mentioned here. There seemed to already be ...
6 years, 2 months ago (2014-10-24 21:12:28 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/672773003/diff/20001/chrome/browser/autocomplete/history_url_provider.cc File chrome/browser/autocomplete/history_url_provider.cc (right): https://codereview.chromium.org/672773003/diff/20001/chrome/browser/autocomplete/history_url_provider.cc#newcode772 chrome/browser/autocomplete/history_url_provider.cc:772: (!params->default_search_provider)); Nit: No parens around unary operation https://codereview.chromium.org/672773003/diff/20001/chrome/browser/autocomplete/history_url_provider_unittest.cc ...
6 years, 2 months ago (2014-10-24 22:02:13 UTC) #7
Chris Vasselli
Fixed up those nits!
6 years, 1 month ago (2014-10-25 15:08:58 UTC) #8
Mark P
Then check the "Commit" box on the codereview page. :-) --mark
6 years, 1 month ago (2014-10-25 17:44:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/672773003/40001
6 years, 1 month ago (2014-10-25 18:24:25 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-10-25 21:53:27 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-10-25 21:54:08 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7d6b4f8b303603f2cf27220f0871df3812880a25
Cr-Commit-Position: refs/heads/master@{#301295}

Powered by Google App Engine
This is Rietveld 408576698