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

Issue 12792013: Instant extended: Remove suggest commit on lost focus (Closed)

Created:
7 years, 9 months ago by sail
Modified:
7 years, 8 months ago
CC:
chromium-reviews, melevin, gideonwald, dominich, David Black, samarth+watch_chromium.org, Jered
Visibility:
Public.

Description

Instant extended: Remove suggest commit on lost focus With this CL we no longer commit instant suggest text when the omnibox loses focus. Also see the following discussion: https://code.google.com/p/chromium/issues/detail?id=179981#c15 BUG=179981, 12664004 TEST=On Mac, ChromeOS, and Windows tested the following: - Typed "hello w" - clicked on the page and verified that suggest text remained uncommited - clicked back in the omnibox and pressed right arrow, verified that the suggest text was commited Did the same test except instead of clicking on the page I clicked into the find bar. Verified that this also worked. Also tested switching tabs and verified that suggest text is not lost. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192645

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : fix tests #

Total comments: 2

Patch Set 5 : update another test #

Total comments: 4

Patch Set 6 : rebase #

Patch Set 7 : address pkasting review comments #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : fix NavigationSuggestionIsDiscardedUponSearchSuggestion #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -84 lines) Patch
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm View 1 2 3 4 5 6 7 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_helper.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -19 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 7 5 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +16 lines, -32 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
sail
sreeram, samarth: Let me know if this looks ok and I'll fix up the tests ...
7 years, 9 months ago (2013-03-15 00:54:41 UTC) #1
samarth
I'll take a look at this more closely tomorrow. But here's an important case to ...
7 years, 9 months ago (2013-03-15 01:02:34 UTC) #2
Peter Kasting
Rubber-stamp LGTM for omnibox OWNERS on this
7 years, 9 months ago (2013-03-15 01:29:58 UTC) #3
sail
On 2013/03/15 01:02:34, samarth wrote: > I'll take a look at this more closely tomorrow. ...
7 years, 9 months ago (2013-03-15 17:31:25 UTC) #4
sreeram
On 2013/03/15 17:31:25, sail wrote: > On 2013/03/15 01:02:34, samarth wrote: > > I'll take ...
7 years, 9 months ago (2013-03-15 18:22:54 UTC) #5
sail
sreeram, samarth: Please take another look. The new code saves suggest text when switching tabs. ...
7 years, 9 months ago (2013-03-22 20:48:08 UTC) #6
sreeram
Wow. This is a complex change. Thanks for doing this! Awesome work! It looks alright ...
7 years, 9 months ago (2013-03-28 15:08:54 UTC) #7
sail
https://codereview.chromium.org/12792013/diff/17001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12792013/diff/17001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode198 chrome/browser/ui/omnibox/omnibox_edit_model.cc:198: (suggest_text.empty() || new_permanent_text != user_text_ + suggest_text); On 2013/03/28 ...
7 years, 9 months ago (2013-03-28 21:17:51 UTC) #8
sail
pkasting: Could you take another look. With the latest patch we now restore instant suggest ...
7 years, 9 months ago (2013-03-28 21:18:37 UTC) #9
Peter Kasting
https://codereview.chromium.org/12792013/diff/24001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12792013/diff/24001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode198 chrome/browser/ui/omnibox/omnibox_edit_model.cc:198: (suggest_text.empty() || new_permanent_text != user_text_ + suggest_text); Why do ...
7 years, 8 months ago (2013-03-30 18:48:21 UTC) #10
sreeram
LGTM I spent some time trying to reason about corner cases, but couldn't come up ...
7 years, 8 months ago (2013-04-01 20:17:37 UTC) #11
sail
On 2013/04/01 20:17:37, sreeram wrote: > LGTM > > I spent some time trying to ...
7 years, 8 months ago (2013-04-01 20:20:16 UTC) #12
sail
On 2013/04/01 20:20:16, sail wrote: > On 2013/04/01 20:17:37, sreeram wrote: > > LGTM > ...
7 years, 8 months ago (2013-04-02 21:34:49 UTC) #13
sail
Hey Scott, it looks like pkasting is out. Could you do a OWNERS review? Thanks.
7 years, 8 months ago (2013-04-02 21:35:21 UTC) #14
Peter Kasting
On 2013/04/02 21:35:21, sail wrote: > Hey Scott, it looks like pkasting is out. Could ...
7 years, 8 months ago (2013-04-02 21:53:36 UTC) #15
sail
On 2013/04/02 21:53:36, Peter Kasting wrote: > On 2013/04/02 21:35:21, sail wrote: > > Hey ...
7 years, 8 months ago (2013-04-02 22:02:50 UTC) #16
sail
-sky since pkasting is taking a look.
7 years, 8 months ago (2013-04-02 22:03:07 UTC) #17
sail
On 2013/04/02 21:53:36, Peter Kasting wrote: > On 2013/04/02 21:35:21, sail wrote: > > Hey ...
7 years, 8 months ago (2013-04-02 22:04:02 UTC) #18
sail
pkasting: addressed review comments. Please take a look. https://codereview.chromium.org/12792013/diff/24001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/12792013/diff/24001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode198 chrome/browser/ui/omnibox/omnibox_edit_model.cc:198: (suggest_text.empty() ...
7 years, 8 months ago (2013-04-02 22:32:06 UTC) #19
Peter Kasting
LGTM https://codereview.chromium.org/12792013/diff/34008/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (right): https://codereview.chromium.org/12792013/diff/34008/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#newcode502 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:502: void OmniboxViewMac::OnStartingIME() { Can this function be eliminated ...
7 years, 8 months ago (2013-04-03 00:35:35 UTC) #20
sail
https://codereview.chromium.org/12792013/diff/34008/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (right): https://codereview.chromium.org/12792013/diff/34008/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#newcode502 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:502: void OmniboxViewMac::OnStartingIME() { On 2013/04/03 00:35:35, Peter Kasting wrote: ...
7 years, 8 months ago (2013-04-03 19:34:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/12792013/48001
7 years, 8 months ago (2013-04-05 02:10:04 UTC) #22
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/search/instant_extended_browsertest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-05 02:10:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/12792013/53001
7 years, 8 months ago (2013-04-05 15:58:08 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=99986
7 years, 8 months ago (2013-04-05 17:07:04 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/12792013/54016
7 years, 8 months ago (2013-04-05 19:56:07 UTC) #26
commit-bot: I haz the power
7 years, 8 months ago (2013-04-05 23:27:43 UTC) #27
Message was sent while issue was closed.
Change committed as 192645

Powered by Google App Engine
This is Rietveld 408576698