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

Issue 22795005: Omnibox: don't assume omnibox has focus in OnAfterPossibleChange(). (Closed)

Created:
7 years, 4 months ago by samarth
Modified:
7 years, 4 months ago
Reviewers:
Peter Kasting, Mark P
CC:
chromium-reviews, Mark P
Visibility:
Public.

Description

Omnibox: don't assume omnibox has focus in OnAfterPossibleChange(). On Linux, right clicking in the omnibox does not give it focus, so right-clicking and pasting can change the contents without focus in the omnibox. Take out the DCHECK that assumes this cannot happen. Also, change the focus_source_ to assume the source was OMNIBOX in these cases. BUG=271462 R=pkasting@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217062

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
samarth
Please review. Thanks, Samarth
7 years, 4 months ago (2013-08-12 16:34:04 UTC) #1
samarth
mpearson -> pkasting
7 years, 4 months ago (2013-08-12 16:35:51 UTC) #2
Mark P
sgtm, but as you've observed, please wait for Peter because he was the original reviewer ...
7 years, 4 months ago (2013-08-12 18:56:44 UTC) #3
Peter Kasting
https://codereview.chromium.org/22795005/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (left): https://codereview.chromium.org/22795005/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#oldcode1035 chrome/browser/ui/omnibox/omnibox_edit_model.cc:1035: DCHECK_NE(OMNIBOX_FOCUS_NONE, focus_state_); You should comment about Linux' dumb behavior ...
7 years, 4 months ago (2013-08-12 18:58:14 UTC) #4
samarth
https://codereview.chromium.org/22795005/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (left): https://codereview.chromium.org/22795005/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#oldcode1035 chrome/browser/ui/omnibox/omnibox_edit_model.cc:1035: DCHECK_NE(OMNIBOX_FOCUS_NONE, focus_state_); On 2013/08/12 18:58:15, Peter Kasting wrote: > ...
7 years, 4 months ago (2013-08-12 19:13:40 UTC) #5
Peter Kasting
LGTM
7 years, 4 months ago (2013-08-12 19:27:56 UTC) #6
samarth
7 years, 4 months ago (2013-08-12 20:32:01 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r217062 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698