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

Issue 19197005: Omnibox: Change |inline_autocomplete_offset| to |inline_autocompletion| (Closed)

Created:
7 years, 5 months ago by Mark P
Modified:
7 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, James Su, arv+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Omnibox: Change |inline_autocomplete_offset| to |inline_autocompletion| This makes things easier to understand. No more messy indexing into |fill_into_edit|. No more wondering whether inline_autocomplete_offset == fill_into_edit.length() is equivalent to inline_autocomplete_offset == string16::npos (Answer: currently equivalent.) Also, it's probably easier in the future to make distinctions between |fill_into_edit| and the inline completion. For instance, we may want one to have a trailing slash and the other not to under certain conditions. The previous code restricted our ability to do this. BUG= TBR=estade ( for chrome/browser/resources/omnibox/omnibox.js ) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212693

Patch Set 1 #

Patch Set 2 : fix issue with using a reference in a place we shouldn't #

Total comments: 18

Patch Set 3 : Peter's comments #

Total comments: 2

Patch Set 4 : Philippe's comment #

Patch Set 5 : restore reference, add comments. #

Total comments: 6

Patch Set 6 : better comment #

Patch Set 7 : remove fill_into_edit line #

Patch Set 8 : drop user_text() in omnibox_edit_model #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -243 lines) Patch
M chrome/browser/autocomplete/autocomplete_match.h View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.cc View 4 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/contact_provider_chromeos.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/extension_app_provider.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 1 2 1 chunk +10 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 6 chunks +5 lines, -24 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 41 chunks +188 lines, -133 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/resources/omnibox/omnibox.js View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_controller.cc View 4 5 6 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 4 chunks +8 lines, -17 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_popup_model.cc View 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Mark P
Peter, is this worth doing? --mark
7 years, 5 months ago (2013-07-16 16:45:06 UTC) #1
Peter Kasting
https://codereview.chromium.org/19197005/diff/9001/chrome/browser/autocomplete/autocomplete_match.h File chrome/browser/autocomplete/autocomplete_match.h (right): https://codereview.chromium.org/19197005/diff/9001/chrome/browser/autocomplete/autocomplete_match.h#newcode250 chrome/browser/autocomplete/autocomplete_match.h:250: // if this match is displayed inline (i.e., within ...
7 years, 5 months ago (2013-07-16 18:09:05 UTC) #2
Mark P
Apparently your implicit answer is, yes, this is worth doing. --mark https://codereview.chromium.org/19197005/diff/9001/chrome/browser/autocomplete/autocomplete_match.h File chrome/browser/autocomplete/autocomplete_match.h (right): ...
7 years, 5 months ago (2013-07-16 18:53:23 UTC) #3
Mark P
Hi Philippe, I'm working on a change that actually corresponds to a TODO for you ...
7 years, 5 months ago (2013-07-16 18:55:41 UTC) #4
Peter Kasting
https://codereview.chromium.org/19197005/diff/9001/chrome/browser/ui/omnibox/omnibox_edit_model.h File chrome/browser/ui/omnibox/omnibox_edit_model.h (right): https://codereview.chromium.org/19197005/diff/9001/chrome/browser/ui/omnibox/omnibox_edit_model.h#newcode273 chrome/browser/ui/omnibox/omnibox_edit_model.h:273: const string16 text, On 2013/07/16 18:53:23, Mark P wrote: ...
7 years, 5 months ago (2013-07-16 18:59:55 UTC) #5
Mark P
https://codereview.chromium.org/19197005/diff/9001/chrome/browser/ui/omnibox/omnibox_edit_model.h File chrome/browser/ui/omnibox/omnibox_edit_model.h (right): https://codereview.chromium.org/19197005/diff/9001/chrome/browser/ui/omnibox/omnibox_edit_model.h#newcode273 chrome/browser/ui/omnibox/omnibox_edit_model.h:273: const string16 text, On 2013/07/16 18:59:55, Peter Kasting wrote: ...
7 years, 5 months ago (2013-07-16 19:47:12 UTC) #6
Peter Kasting
On 2013/07/16 19:47:12, Mark P wrote: > https://codereview.chromium.org/19197005/diff/9001/chrome/browser/ui/omnibox/omnibox_edit_model.h > File chrome/browser/ui/omnibox/omnibox_edit_model.h (right): > > https://codereview.chromium.org/19197005/diff/9001/chrome/browser/ui/omnibox/omnibox_edit_model.h#newcode273 ...
7 years, 5 months ago (2013-07-16 19:49:58 UTC) #7
beaudoin
On 2013/07/16 19:49:58, Peter Kasting wrote: > On 2013/07/16 19:47:12, Mark P wrote: > > ...
7 years, 5 months ago (2013-07-16 19:53:12 UTC) #8
Peter Kasting
On 2013/07/16 19:53:12, beaudoin wrote: > LGTM. Thanks for handling that Mark, feels much better ...
7 years, 5 months ago (2013-07-16 19:57:27 UTC) #9
beaudoin
You are right Peter, missed this. https://codereview.chromium.org/19197005/diff/26002/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (left): https://codereview.chromium.org/19197005/diff/26002/chrome/browser/ui/omnibox/omnibox_controller.cc#oldcode77 chrome/browser/ui/omnibox/omnibox_controller.cc:77: current_match_.fill_into_edit = omnibox_edit_model_->user_text(); ...
7 years, 5 months ago (2013-07-16 20:07:28 UTC) #10
Mark P
On Tue, Jul 16, 2013 at 12:49 PM, <pkasting@chromium.org> wrote: > On 2013/07/16 19:47:12, Mark ...
7 years, 5 months ago (2013-07-16 20:11:10 UTC) #11
Mark P
https://codereview.chromium.org/19197005/diff/26002/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (left): https://codereview.chromium.org/19197005/diff/26002/chrome/browser/ui/omnibox/omnibox_controller.cc#oldcode77 chrome/browser/ui/omnibox/omnibox_controller.cc:77: current_match_.fill_into_edit = omnibox_edit_model_->user_text(); On 2013/07/16 20:07:28, beaudoin wrote: > ...
7 years, 5 months ago (2013-07-16 20:11:50 UTC) #12
Peter Kasting
On 2013/07/16 20:11:10, Mark P wrote: > On Tue, Jul 16, 2013 at 12:49 PM, ...
7 years, 5 months ago (2013-07-16 21:06:57 UTC) #13
Mark P
On Tue, Jul 16, 2013 at 2:06 PM, <pkasting@chromium.org> wrote: > On 2013/07/16 20:11:10, Mark ...
7 years, 5 months ago (2013-07-16 21:39:52 UTC) #14
Peter Kasting
Question for Philippe below. https://codereview.chromium.org/19197005/diff/37001/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (right): https://codereview.chromium.org/19197005/diff/37001/chrome/browser/ui/omnibox/omnibox_controller.cc#newcode75 chrome/browser/ui/omnibox/omnibox_controller.cc:75: // we need to replace ...
7 years, 5 months ago (2013-07-16 21:48:50 UTC) #15
Mark P
https://codereview.chromium.org/19197005/diff/37001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/19197005/diff/37001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode1115 chrome/browser/ui/omnibox/omnibox_edit_model.cc:1115: // the inline_autocompletion originally was. On 2013/07/16 21:48:50, Peter ...
7 years, 5 months ago (2013-07-16 23:34:08 UTC) #16
Mark P
Philippe, Can you please respond to Peter's comment about why there's a need to keep ...
7 years, 5 months ago (2013-07-17 20:48:08 UTC) #17
beaudoin1
Mark, i will look at it tonight. On Jul 17, 2013 4:48 PM, <mpearson@chromium.org> wrote: ...
7 years, 5 months ago (2013-07-17 21:33:52 UTC) #18
Peter Kasting
I wonder if we needed this because we were going to send the fill_into_edit to ...
7 years, 5 months ago (2013-07-17 22:07:10 UTC) #19
Mark P
Okay, removed that line and its associated comment. Peter, are you ready for me to ...
7 years, 5 months ago (2013-07-17 22:56:40 UTC) #20
Peter Kasting
On 2013/07/17 22:56:40, Mark P wrote: > Okay, removed that line and its associated comment. ...
7 years, 5 months ago (2013-07-17 23:05:49 UTC) #21
beaudoin
https://codereview.chromium.org/19197005/diff/37001/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (right): https://codereview.chromium.org/19197005/diff/37001/chrome/browser/ui/omnibox/omnibox_controller.cc#newcode75 chrome/browser/ui/omnibox/omnibox_controller.cc:75: // we need to replace it. On 2013/07/16 21:48:50, ...
7 years, 5 months ago (2013-07-18 17:50:18 UTC) #22
Peter Kasting
On 2013/07/18 17:50:18, beaudoin wrote: > https://codereview.chromium.org/19197005/diff/37001/chrome/browser/ui/omnibox/omnibox_controller.cc > File chrome/browser/ui/omnibox/omnibox_controller.cc (right): > > https://codereview.chromium.org/19197005/diff/37001/chrome/browser/ui/omnibox/omnibox_controller.cc#newcode75 > ...
7 years, 5 months ago (2013-07-18 17:54:44 UTC) #23
beaudoin
On 2013/07/18 17:54:44, Peter Kasting wrote: > On 2013/07/18 17:50:18, beaudoin wrote: > > > ...
7 years, 5 months ago (2013-07-18 18:15:37 UTC) #24
Peter Kasting
On 2013/07/18 18:15:37, beaudoin wrote: > I am pretty sure we're showing fill_into_edit on an ...
7 years, 5 months ago (2013-07-18 18:22:44 UTC) #25
beaudoin
On 2013/07/18 18:22:44, Peter Kasting wrote: > On 2013/07/18 18:15:37, beaudoin wrote: > > I ...
7 years, 5 months ago (2013-07-18 19:15:27 UTC) #26
Mark P
On Thu, Jul 18, 2013 at 12:15 PM, <beaudoin@chromium.org> wrote: > If you drop it, ...
7 years, 5 months ago (2013-07-18 19:31:23 UTC) #27
Mark P
Given the results of this discussion and the fact that the try failures seem unconnected ...
7 years, 5 months ago (2013-07-19 00:14:56 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/19197005/65001
7 years, 5 months ago (2013-07-19 00:15:28 UTC) #29
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=16022
7 years, 5 months ago (2013-07-19 00:26:17 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/19197005/65001
7 years, 5 months ago (2013-07-19 13:22:40 UTC) #31
commit-bot: I haz the power
7 years, 5 months ago (2013-07-19 23:40:27 UTC) #32
Message was sent while issue was closed.
Change committed as 212693

Powered by Google App Engine
This is Rietveld 408576698