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

Issue 214613003: [OriginChip] Show the URL on Esc key pressed (Closed)

Created:
6 years, 9 months ago by Justin Donnelly
Modified:
6 years, 9 months ago
CC:
chromium-reviews, rubylee, macourteau, Greg Billock
Visibility:
Public.

Description

[OriginChip] Show the URL on Esc key pressed This change makes it so hitting the Esc while the omnibox has focus shows the URL unless search term replacement is being performed, in which case we revert to the original search terms. This holds for both the hide-on-mouse-release and hide-on-input options. For the latter, this means that a click in the omnibox will also hide the origin chip. This supports the case where the user is trying to get at the URL and forgets to click on the origin chip or misses it due to existing muscle memory. In this case, an Esc will show the URL as users are accustomed to. In no case will hitting Esc cause the origin chip to reappear. BUG=349497 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260173

Patch Set 1 #

Total comments: 3

Patch Set 2 : Always show URL except in case of search term replacement #

Total comments: 4

Patch Set 3 : Respond to comments #

Total comments: 2

Patch Set 4 : Respond to comment #

Patch Set 5 : Fix browser test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -20 lines) Patch
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 chunks +21 lines, -16 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
Justin Donnelly
https://codereview.chromium.org/214613003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (left): https://codereview.chromium.org/214613003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#oldcode507 chrome/browser/ui/omnibox/omnibox_edit_model.cc:507: controller_->GetToolbarModel()->set_url_replacement_enabled(true); I'm not sure what this was trying to ...
6 years, 9 months ago (2014-03-27 13:47:36 UTC) #1
Justin Donnelly
Rachel, Marc-Antoine - can one of you test this on Mac when you get a ...
6 years, 9 months ago (2014-03-27 16:09:17 UTC) #2
Peter Kasting
The behavior you've implemented here is precisely what Greg and I described in the meeting ...
6 years, 9 months ago (2014-03-27 17:46:54 UTC) #3
Justin Donnelly
On 2014/03/27 17:46:54, Peter Kasting wrote: > The behavior you've implemented here is precisely what ...
6 years, 9 months ago (2014-03-27 17:58:49 UTC) #4
groby-ooo-7-16
This doesn't enable the origin chip if input is not in progress any more, i.e. ...
6 years, 9 months ago (2014-03-27 18:00:52 UTC) #5
Peter Kasting
On 2014/03/27 17:58:49, Justin Donnelly wrote: > If we don't do it the way I've ...
6 years, 9 months ago (2014-03-27 18:05:06 UTC) #6
Justin Donnelly1
To clarify, should Esc show the URL immediately after the user clicked in the Omnibox ...
6 years, 9 months ago (2014-03-27 18:19:58 UTC) #7
Peter Kasting
On 2014/03/27 18:19:58, jdonnelly_google.com wrote: > To clarify, should Esc show the URL immediately after ...
6 years, 9 months ago (2014-03-27 18:23:49 UTC) #8
Justin Donnelly1
On Thu, Mar 27, 2014 at 11:23 AM, <pkasting@chromium.org> wrote: > I have been wrong ...
6 years, 9 months ago (2014-03-27 18:26:35 UTC) #9
Justin Donnelly
On 2014/03/27 18:26:35, jdonnelly_google.com wrote: > I'm never wrong, so the odds are in my ...
6 years, 9 months ago (2014-03-27 20:42:42 UTC) #10
Justin Donnelly
On 2014/03/27 18:00:52, groby wrote: > This doesn't enable the origin chip if input is ...
6 years, 9 months ago (2014-03-27 21:00:56 UTC) #11
Peter Kasting
https://codereview.chromium.org/214613003/diff/20001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/214613003/diff/20001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode971 chrome/browser/ui/omnibox/omnibox_edit_model.cc:971: UpdatePermanentText(); How come we need to call this? https://codereview.chromium.org/214613003/diff/20001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode974 ...
6 years, 9 months ago (2014-03-27 21:10:09 UTC) #12
groby-ooo-7-16
Seems OK on OSX - any use of ESC gets previous URL/search back, and focus ...
6 years, 9 months ago (2014-03-27 21:32:47 UTC) #13
Justin Donnelly
https://codereview.chromium.org/214613003/diff/20001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/214613003/diff/20001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode971 chrome/browser/ui/omnibox/omnibox_edit_model.cc:971: UpdatePermanentText(); On 2014/03/27 21:10:09, Peter Kasting wrote: > How ...
6 years, 9 months ago (2014-03-27 21:52:16 UTC) #14
Peter Kasting
On 2014/03/27 21:32:47, groby wrote: > Seems OK on OSX - any use of ESC ...
6 years, 9 months ago (2014-03-27 21:53:28 UTC) #15
groby-ooo-7-16
On 2014/03/27 21:53:28, Peter Kasting wrote: > On 2014/03/27 21:32:47, groby wrote: > > Seems ...
6 years, 9 months ago (2014-03-27 21:55:21 UTC) #16
Justin Donnelly
On 2014/03/27 21:55:21, groby wrote: > On 2014/03/27 21:53:28, Peter Kasting wrote: > > On ...
6 years, 9 months ago (2014-03-27 21:58:43 UTC) #17
Peter Kasting
LGTM. I don't know why Mac is acting weird. I blame it on Mac being ...
6 years, 9 months ago (2014-03-27 22:04:12 UTC) #18
Justin Donnelly
https://codereview.chromium.org/214613003/diff/40001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/214613003/diff/40001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode967 chrome/browser/ui/omnibox/omnibox_edit_model.cc:967: // terms. On 2014/03/27 22:04:12, Peter Kasting wrote: > ...
6 years, 9 months ago (2014-03-27 22:10:07 UTC) #19
Justin Donnelly
The CQ bit was checked by jdonnelly@chromium.org
6 years, 9 months ago (2014-03-27 22:10:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdonnelly@chromium.org/214613003/60001
6 years, 9 months ago (2014-03-27 22:11:13 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 02:29:45 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=289976
6 years, 9 months ago (2014-03-28 02:29:45 UTC) #23
Justin Donnelly
The CQ bit was checked by jdonnelly@chromium.org
6 years, 9 months ago (2014-03-28 02:48:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdonnelly@chromium.org/214613003/60001
6 years, 9 months ago (2014-03-28 02:49:29 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 03:12:47 UTC) #26
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=136633
6 years, 9 months ago (2014-03-28 03:12:48 UTC) #27
Justin Donnelly
The CQ bit was checked by jdonnelly@chromium.org
6 years, 9 months ago (2014-03-28 03:40:14 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdonnelly@chromium.org/214613003/60001
6 years, 9 months ago (2014-03-28 03:41:00 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 04:37:16 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 9 months ago (2014-03-28 04:37:17 UTC) #31
Justin Donnelly
The CQ bit was checked by jdonnelly@chromium.org
6 years, 9 months ago (2014-03-28 04:42:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdonnelly@chromium.org/214613003/60001
6 years, 9 months ago (2014-03-28 04:44:18 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 05:52:29 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-28 05:52:30 UTC) #35
Justin Donnelly
The CQ bit was checked by jdonnelly@chromium.org
6 years, 9 months ago (2014-03-28 13:55:23 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdonnelly@chromium.org/214613003/70001
6 years, 9 months ago (2014-03-28 13:57:41 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 15:16:48 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-28 15:16:48 UTC) #39
Justin Donnelly
The CQ bit was checked by jdonnelly@chromium.org
6 years, 9 months ago (2014-03-28 15:21:18 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdonnelly@chromium.org/214613003/70001
6 years, 9 months ago (2014-03-28 15:24:10 UTC) #41
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 17:02:01 UTC) #42
Message was sent while issue was closed.
Change committed as 260173

Powered by Google App Engine
This is Rietveld 408576698