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

Issue 232023004: Ensures the autocomplete_controller input is saved and restored when changing tabs. (Closed)

Created:
6 years, 8 months ago by beaudoin
Modified:
6 years, 8 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Ensures the autocomplete_controller input is saved and restored when changing tabs. Failing to do so confuses the omnibox_edit_model. A visible bug appears when using ctrl+enter after having switched tab, which can cause the text of the previous tab to be used. BUG=338448 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266385

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : OmniboxEditModel now caches its AutocompleteInput. #

Total comments: 4

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Fixed broken browser test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -50 lines) Patch
M chrome/browser/autocomplete/autocomplete_controller.h View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_controller.h View 1 2 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_controller.cc View 1 2 1 chunk +2 lines, -11 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 5 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 10 chunks +26 lines, -18 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
beaudoin
Peter, this fixes the CTRL+enter bug when changing tab with some text entered in the ...
6 years, 8 months ago (2014-04-10 01:33:32 UTC) #1
beaudoin
Peter, this fixes the CTRL+enter bug when changing tab with some text entered in the ...
6 years, 8 months ago (2014-04-11 12:58:03 UTC) #2
Peter Kasting
We can't quite do this as-is, because AutocompleteController believes that |input_| represents the last thing ...
6 years, 8 months ago (2014-04-14 21:48:27 UTC) #3
beaudoin
Thanks for the review Peter, and you're absolutely right, this new version with a cached ...
6 years, 8 months ago (2014-04-24 19:52:20 UTC) #4
Peter Kasting
On 2014/04/24 19:52:20, beaudoin wrote: > I couldn't get rid of AutocompleteController::input() because OmniboxUIHandler > ...
6 years, 8 months ago (2014-04-24 20:34:53 UTC) #5
beaudoin
Totally removed the input() accessor from AutocompleteController. https://codereview.chromium.org/232023004/diff/40001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/232023004/diff/40001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode221 chrome/browser/ui/omnibox/omnibox_edit_model.cc:221: StopAutocomplete(); On ...
6 years, 8 months ago (2014-04-25 16:46:21 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/232023004/diff/40001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/232023004/diff/40001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode221 chrome/browser/ui/omnibox/omnibox_edit_model.cc:221: StopAutocomplete(); On 2014/04/25 16:46:21, beaudoin wrote: > Right, ...
6 years, 8 months ago (2014-04-25 17:59:07 UTC) #7
beaudoin
The CQ bit was checked by beaudoin@chromium.org
6 years, 8 months ago (2014-04-25 18:33:33 UTC) #8
beaudoin
The CQ bit was checked by beaudoin@chromium.org
6 years, 8 months ago (2014-04-25 22:08:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/232023004/80001
6 years, 8 months ago (2014-04-25 22:12:13 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 03:06:18 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-26 03:06:18 UTC) #12
beaudoin
The CQ bit was checked by beaudoin@chromium.org
6 years, 8 months ago (2014-04-26 06:09:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/232023004/100001
6 years, 8 months ago (2014-04-26 06:11:33 UTC) #14
commit-bot: I haz the power
6 years, 8 months ago (2014-04-26 22:25:41 UTC) #15
Message was sent while issue was closed.
Change committed as 266385

Powered by Google App Engine
This is Rietveld 408576698