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 2904243002: Don't reset the omnibox state on command-return. (Closed)

Created:
3 years, 7 months ago by Justin Donnelly
Modified:
3 years, 6 months ago
CC:
chromium-reviews, jdonnelly+watch_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't reset the omnibox state on command-return. This was originally added in https://codereview.chromium.org/260008/, motivated it appears by a desire to match Safari's behavior. Safari no longer does this (the address field state is preserved on command-return as the new tab is openeed in the background). This change makes Chrome's behavior consistent with Safari, simplifies the code, fixes a bug, and is more useful IMO. If you want to open several tabs with variations on some search, for example, you can press command-return after each, then keep typing to produce the next. See discussion in the bug for more info. BUG=513966 Review-Url: https://codereview.chromium.org/2904243002 Cr-Commit-Position: refs/heads/master@{#475542} Committed: https://chromium.googlesource.com/chromium/src/+/1f35c3ffdebd60917647555ac6ec572098967035

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -10 lines) Patch
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 chunk +0 lines, -10 lines 2 comments Download

Messages

Total messages: 15 (9 generated)
Justin Donnelly
3 years, 7 months ago (2017-05-26 17:55:28 UTC) #5
rohitrao (ping after 24h)
lgtm https://codereview.chromium.org/2904243002/diff/1/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (left): https://codereview.chromium.org/2904243002/diff/1/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#oldcode829 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:829: if (GetTextLength() == 0) This was a fix ...
3 years, 6 months ago (2017-05-30 14:41:14 UTC) #8
Justin Donnelly
https://codereview.chromium.org/2904243002/diff/1/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (left): https://codereview.chromium.org/2904243002/diff/1/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#oldcode829 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:829: if (GetTextLength() == 0) On 2017/05/30 14:41:14, rohitrao (ping ...
3 years, 6 months ago (2017-05-30 15:32:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904243002/1
3 years, 6 months ago (2017-05-30 15:33:10 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/1f35c3ffdebd60917647555ac6ec572098967035
3 years, 6 months ago (2017-05-30 15:55:42 UTC) #14
Justin Donnelly
3 years, 5 months ago (2017-07-20 19:19:20 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2983193002/ by jdonnelly@chromium.org.

The reason for reverting is: This change caused a new issue:
https://crbug.com/743288. While we decide how to proceed, it would be better to
revert to the previous behavior..

Powered by Google App Engine
This is Rietveld 408576698