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

Issue 14698028: Omnibox refactor. OmniboxController now holds an AutocompleteMatch. (Closed)

Created:
7 years, 7 months ago by beaudoin
Modified:
7 years, 6 months ago
CC:
chromium-reviews, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, sail+watch_chromium.org, gideonwald, dominich, David Black, samarth+watch_chromium.org, tfarina, kmadhusu+watch_chromium.org, James Su, Jered, Peter Kasting, brettw
Visibility:
Public.

Description

Omnibox refactor. OmniboxController now holds an AutocompleteMatch. This is a larger part of the omnibox refactor. OmniboxController now holds an AutocompleteMatch and this is the only thing OmniboxEditModel relies on to set the content of the omnibox. BUG=234733 TBR=sky@chromium.org,joaodasilva@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207029

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Rebased, removed LOG. #

Patch Set 4 : Rebased. #

Patch Set 5 : Rebased #

Patch Set 6 : Fixed unit tests #

Patch Set 7 : Fixed browser tests. #

Patch Set 8 : Rebased. #

Patch Set 9 : Rebased and cleaned-up. #

Total comments: 42

Patch Set 10 : Answered peter's comments. #

Patch Set 11 : Rebased #

Total comments: 2

Patch Set 12 : Answered pkasting comments, rebased. #

Total comments: 7

Patch Set 13 : Fixed failing browser tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -120 lines) Patch
M chrome/browser/autocomplete/autocomplete_result.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/popup_blocker_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_controller.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +133 lines, -18 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 chunks +65 lines, -79 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
beaudoin
ping.
7 years, 7 months ago (2013-05-24 19:02:40 UTC) #1
tfarina
Peter is the owner of Omnibox. Copying him just in case you wanted him instead.
7 years, 7 months ago (2013-05-24 19:28:26 UTC) #2
beaudoin
On 2013/05/24 19:28:26, tfarina wrote: > Peter is the owner of Omnibox. Copying him just ...
7 years, 7 months ago (2013-05-24 20:05:04 UTC) #3
beaudoin
This CL is ready for review. Sreeram, I have a question for you in there. ...
7 years, 6 months ago (2013-06-06 14:15:00 UTC) #4
Matt Perry
lgtm
7 years, 6 months ago (2013-06-06 21:09:19 UTC) #5
sreeram
https://codereview.chromium.org/14698028/diff/33001/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (right): https://codereview.chromium.org/14698028/diff/33001/chrome/browser/ui/omnibox/omnibox_controller.cc#newcode210 chrome/browser/ui/omnibox/omnibox_controller.cc:210: autocomplete_controller_->input().type(), &view_text); On 2013/06/06 14:15:00, beaudoin wrote: > Sreeram: ...
7 years, 6 months ago (2013-06-06 23:32:23 UTC) #6
sreeram
Removing myself as reviewer, as I no longer work on Instant/Extended.
7 years, 6 months ago (2013-06-10 18:09:55 UTC) #7
Peter Kasting
https://codereview.chromium.org/14698028/diff/33001/chrome/browser/autocomplete/autocomplete_match.h File chrome/browser/autocomplete/autocomplete_match.h (right): https://codereview.chromium.org/14698028/diff/33001/chrome/browser/autocomplete/autocomplete_match.h#newcode252 chrome/browser/autocomplete/autocomplete_match.h:252: string16 gray_suggestion; It doesn't seem right to put this ...
7 years, 6 months ago (2013-06-11 22:42:54 UTC) #8
beaudoin
@pkasting PTAL https://codereview.chromium.org/14698028/diff/33001/chrome/browser/autocomplete/autocomplete_match.h File chrome/browser/autocomplete/autocomplete_match.h (right): https://codereview.chromium.org/14698028/diff/33001/chrome/browser/autocomplete/autocomplete_match.h#newcode252 chrome/browser/autocomplete/autocomplete_match.h:252: string16 gray_suggestion; On 2013/06/11 22:42:55, Peter Kasting ...
7 years, 6 months ago (2013-06-14 21:39:38 UTC) #9
Peter Kasting
I think my first comment below suggests that your idea of doing _something_ different than ...
7 years, 6 months ago (2013-06-15 00:29:20 UTC) #10
beaudoin
Peter: PTAL. https://codereview.chromium.org/14698028/diff/33001/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (right): https://codereview.chromium.org/14698028/diff/33001/chrome/browser/ui/omnibox/omnibox_controller.cc#newcode103 chrome/browser/ui/omnibox/omnibox_controller.cc:103: current_match_.fill_into_edit = omnibox_edit_model_->user_text(); On 2013/06/15 00:29:21, Peter ...
7 years, 6 months ago (2013-06-17 17:22:32 UTC) #11
beaudoin
TBR sky@chromium.org,joaodasilva@chromium.org for trivial changes in tests.
7 years, 6 months ago (2013-06-18 14:53:23 UTC) #12
beaudoin
TBR sky@chromium.org,joaodasilva@chromium.org for trivial changes in tests.
7 years, 6 months ago (2013-06-18 14:54:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/14698028/84001
7 years, 6 months ago (2013-06-18 14:55:12 UTC) #14
commit-bot: I haz the power
Change committed as 207029
7 years, 6 months ago (2013-06-18 17:41:04 UTC) #15
Peter Kasting
LGTM https://codereview.chromium.org/14698028/diff/68001/chrome/browser/autocomplete/autocomplete_result.cc File chrome/browser/autocomplete/autocomplete_result.cc (right): https://codereview.chromium.org/14698028/diff/68001/chrome/browser/autocomplete/autocomplete_result.cc#newcode137 chrome/browser/autocomplete/autocomplete_result.cc:137: alternate_nav_url_ = default_match_ == end() ? GURL() : ...
7 years, 6 months ago (2013-06-18 17:43:59 UTC) #16
beaudoin
7 years, 6 months ago (2013-06-18 22:37:33 UTC) #17
Message was sent while issue was closed.
Follow-up on https://codereview.chromium.org/17426004/

https://codereview.chromium.org/14698028/diff/68001/chrome/browser/autocomple...
File chrome/browser/autocomplete/autocomplete_result.cc (right):

https://codereview.chromium.org/14698028/diff/68001/chrome/browser/autocomple...
chrome/browser/autocomplete/autocomplete_result.cc:137: alternate_nav_url_ =
default_match_ == end() ? GURL() :
On 2013/06/18 17:44:00, Peter Kasting wrote:
> Nit: Wrap after '?' instead of ':'.  Put parens around binary subexpression.

Done.

https://codereview.chromium.org/14698028/diff/68001/chrome/browser/autocomple...
chrome/browser/autocomplete/autocomplete_result.cc:210: return (input.type() ==
AutocompleteInput::UNKNOWN &&
On 2013/06/18 17:44:00, Peter Kasting wrote:
> Nit: Parens around binary subexpressions

Done.

https://codereview.chromium.org/14698028/diff/68001/chrome/browser/autocomple...
File chrome/browser/autocomplete/autocomplete_result.h (right):

https://codereview.chromium.org/14698028/diff/68001/chrome/browser/autocomple...
chrome/browser/autocomplete/autocomplete_result.h:123: // by interpreting the
user input directly as a URL.
On 2013/06/18 17:44:00, Peter Kasting wrote:
> Nit: Might want to add a "see comments on |alternate_nav_url_|".

Done.

Powered by Google App Engine
This is Rietveld 408576698