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

Issue 10877021: Experimental AutocompleteProvider for zerosuggest. (Closed)

Created:
8 years, 4 months ago by samarth
Modified:
8 years, 3 months ago
Reviewers:
Peter Kasting, sreeram, sky
CC:
chromium-reviews, James Su, Jered
Visibility:
Public.

Description

Experimental AutocompleteProvider for zerosuggest. Zerosuggest is an experimental feature which would offer query suggestions when a user focuses in the omnibox prior to typing any text. The goal of this change is to allow us to do a limited dogfood of this feature in canary to assess data quality and UX in situ. This experimental implementation uses the existing AutocompleteProvider framework and attempts to make minimal changes to omnibox interaction. The provider is behind a new --zerosuggest-url-prefix flag which must be explicitly pointed to a suggestion server for testing. The provider goes to some pains to mimic the current focus behavior of the omnibox by inserting a placeholder suggestion for the current URL which is filled and completed inline. "Enter" still refreshes the page, and the url can still be copy+pasted or replaced; however, backspace does not work, and it's complicated to deal with the case where the user unfocuses the omnibox and then focuses again. Original change by jered@chromium.org: https://chromiumcodereview.appspot.com/10832256/ BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155057

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix nits. #

Total comments: 2

Patch Set 3 : Rebase and better debug message. #

Patch Set 4 : Rebase. #

Patch Set 5 : TabContents may be empty. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -8 lines) Patch
M chrome/browser/autocomplete/autocomplete_controller.h View 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.cc View 1 7 chunks +44 lines, -5 lines 0 comments Download
A chrome/browser/autocomplete/zero_suggest_provider.h View 1 chunk +120 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/zero_suggest_provider.cc View 1 chunk +223 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 3 chunks +17 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
samarth
Hi pkasting, sky, Continuing review from https://chromiumcodereview.appspot.com/10832256/ since Jered is out. Thanks, Samarth
8 years, 4 months ago (2012-08-22 18:15:37 UTC) #1
sky
Peter should review this. I'm removing myself as a reviewer.
8 years, 4 months ago (2012-08-22 19:38:08 UTC) #2
samarth
Hey Peter, Have you had a chance to look at this? (It's in the same ...
8 years, 3 months ago (2012-08-27 21:41:55 UTC) #3
Peter Kasting
LGTM http://codereview.chromium.org/10877021/diff/1/chrome/browser/autocomplete/autocomplete_controller.cc File chrome/browser/autocomplete/autocomplete_controller.cc (right): http://codereview.chromium.org/10877021/diff/1/chrome/browser/autocomplete/autocomplete_controller.cc#newcode205 chrome/browser/autocomplete/autocomplete_controller.cc:205: void AutocompleteController::StartZeroSuggest( Perhaps this function and StopZeroSuggest() should ...
8 years, 3 months ago (2012-08-27 23:13:35 UTC) #4
samarth
sky: I need your approval for chrome/OWNERS. Note that this is a continuation of https://chromiumcodereview.appspot.com/10832256/ ...
8 years, 3 months ago (2012-08-28 23:18:46 UTC) #5
samarth
Scott: friendly ping Thanks, Samarth
8 years, 3 months ago (2012-08-31 22:13:31 UTC) #6
sky
LGTM
8 years, 3 months ago (2012-08-31 23:54:43 UTC) #7
sreeram
http://codereview.chromium.org/10877021/diff/7001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): http://codereview.chromium.org/10877021/diff/7001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode532 chrome/browser/ui/omnibox/omnibox_edit_model.cc:532: << "things may be wrong."; Add "match.provider->name()" to the ...
8 years, 3 months ago (2012-09-03 22:37:07 UTC) #8
samarth
http://codereview.chromium.org/10877021/diff/7001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): http://codereview.chromium.org/10877021/diff/7001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode532 chrome/browser/ui/omnibox/omnibox_edit_model.cc:532: << "things may be wrong."; On 2012/09/03 22:37:07, sreeram ...
8 years, 3 months ago (2012-09-04 15:48:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/10877021/10005
8 years, 3 months ago (2012-09-05 20:43:49 UTC) #10
commit-bot: I haz the power
8 years, 3 months ago (2012-09-05 23:53:09 UTC) #11
Change committed as 155057

Powered by Google App Engine
This is Rietveld 408576698