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

Issue 2046263002: Fix DCHECK. (Closed)

Created:
4 years, 6 months ago by Peter Kasting
Modified:
4 years, 6 months ago
Reviewers:
Mark P
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@cleanup
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DCHECK. SuggestExactInput() was being called with the wrong value for |trim_http|. We want to trim HTTP only when the user hasn't explicitly typed it, but instead we were trying to trim it only _if_ the user explicitly typed it. This has been wrong since this code was introduced in https://codereview.chromium.org/58553003/ . BUG=603839 TEST=In a debug build, use the omnibox to navigate to "http://ab cd" (no quotes). This should not DCHECK. Committed: https://crrev.com/25a43970447cb8760dde96b9ec6875371dbd07f8 Cr-Commit-Position: refs/heads/master@{#399014}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Simplify behavior #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -10 lines) Patch
M components/omnibox/browser/omnibox_controller.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M components/omnibox/browser/omnibox_edit_model.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M components/omnibox/browser/omnibox_edit_unittest.cc View 1 5 chunks +34 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (3 generated)
Peter Kasting
https://codereview.chromium.org/2046263002/diff/1/components/omnibox/browser/omnibox_controller.cc File components/omnibox/browser/omnibox_controller.cc (right): https://codereview.chromium.org/2046263002/diff/1/components/omnibox/browser/omnibox_controller.cc#newcode43 components/omnibox/browser/omnibox_controller.cc:43: const bool was_open = popup_ && popup_->IsOpen(); These changes ...
4 years, 6 months ago (2016-06-08 01:21:34 UTC) #2
Mark P
generally lgtm, with minor comments below https://codereview.chromium.org/2046263002/diff/1/components/omnibox/browser/omnibox_edit_unittest.cc File components/omnibox/browser/omnibox_edit_unittest.cc (right): https://codereview.chromium.org/2046263002/diff/1/components/omnibox/browser/omnibox_edit_unittest.cc#newcode213 components/omnibox/browser/omnibox_edit_unittest.cc:213: On 2016/06/08 01:21:34, ...
4 years, 6 months ago (2016-06-08 20:35:57 UTC) #3
Peter Kasting
https://codereview.chromium.org/2046263002/diff/1/components/omnibox/browser/omnibox_edit_unittest.cc File components/omnibox/browser/omnibox_edit_unittest.cc (right): https://codereview.chromium.org/2046263002/diff/1/components/omnibox/browser/omnibox_edit_unittest.cc#newcode382 components/omnibox/browser/omnibox_edit_unittest.cc:382: TEST_F(OmniboxEditTest, HasHTTP) { On 2016/06/08 20:35:57, Mark P wrote: ...
4 years, 6 months ago (2016-06-08 20:52:24 UTC) #4
Peter Kasting
https://codereview.chromium.org/2046263002/diff/1/components/omnibox/browser/omnibox_edit_unittest.cc File components/omnibox/browser/omnibox_edit_unittest.cc (right): https://codereview.chromium.org/2046263002/diff/1/components/omnibox/browser/omnibox_edit_unittest.cc#newcode382 components/omnibox/browser/omnibox_edit_unittest.cc:382: TEST_F(OmniboxEditTest, HasHTTP) { On 2016/06/08 20:52:24, Peter Kasting wrote: ...
4 years, 6 months ago (2016-06-09 19:26:56 UTC) #5
Mark P
still lgtm
4 years, 6 months ago (2016-06-09 20:04:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046263002/20001
4 years, 6 months ago (2016-06-09 20:43:35 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-09 21:11:37 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 21:12:01 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 21:13:15 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/25a43970447cb8760dde96b9ec6875371dbd07f8
Cr-Commit-Position: refs/heads/master@{#399014}

Powered by Google App Engine
This is Rietveld 408576698