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

Issue 11570020: Fix search terms handling on commit (Closed)

Created:
8 years ago by samarth
Modified:
8 years ago
Reviewers:
beaudoin, sky, Jered
CC:
chromium-reviews, melevin, samarth, sreeram, gideonwald, dominich, David Black, Mathieu
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix search terms handling on commit. The server calls setValue() with the query selected when a user clicks on a query suggestion. When the page is in mode search, just update the omnibox text with the supplied query. Also, fix what query we use in the VirtualURL on commit: use the user text if committing because of ENTER, and use the user text + the gray text if committing because of click on the preview. Together, these should fix most of the flickering and wrong-text-in-the-omnibox issues. A better and more robust fix was started by Mathieu in crrev.com/11415292 but that approach will need some restructuring before it can land. BUG=165710, 159326 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173526

Patch Set 1 #

Total comments: 4

Patch Set 2 : Merge change from Mathieu. #

Patch Set 3 : Update comments. #

Patch Set 4 : Rebase. #

Total comments: 4

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -5 lines) Patch
M chrome/browser/instant/instant_controller.cc View 1 2 3 3 chunks +21 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
beaudoin
https://codereview.chromium.org/11570020/diff/1/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11570020/diff/1/chrome/browser/instant/instant_controller.cc#newcode668 chrome/browser/instant/instant_controller.cc:668: if (instant_tab_ && instant_tab_->contents() == contents && Nit: the ...
8 years ago (2012-12-14 15:36:19 UTC) #1
samarth
sky: please review for Instant Jered: please sanity check that the setValue() change won't cause ...
8 years ago (2012-12-14 17:48:59 UTC) #2
sky
Can we have some tests for this?
8 years ago (2012-12-14 18:00:23 UTC) #3
samarth
Hi Scott, I started work on tests for InstantExtended in https://codereview.chromium.org/11592004/ (we need some scaffolding ...
8 years ago (2012-12-17 00:06:30 UTC) #4
sky
Ok, LGTM
8 years ago (2012-12-17 17:04:06 UTC) #5
Jered
https://codereview.chromium.org/11570020/diff/9001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11570020/diff/9001/chrome/browser/instant/instant_controller.cc#newcode510 chrome/browser/instant/instant_controller.cc:510: if (type != INSTANT_COMMIT_PRESSED_ENTER) Does this work for a ...
8 years ago (2012-12-17 17:14:23 UTC) #6
samarth
Thanks for the reviews! https://codereview.chromium.org/11570020/diff/9001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11570020/diff/9001/chrome/browser/instant/instant_controller.cc#newcode510 chrome/browser/instant/instant_controller.cc:510: if (type != INSTANT_COMMIT_PRESSED_ENTER) On ...
8 years ago (2012-12-17 17:18:49 UTC) #7
Jered
lgtm On 2012/12/17 17:18:49, samarth wrote: > Thanks for the reviews! > > https://codereview.chromium.org/11570020/diff/9001/chrome/browser/instant/instant_controller.cc > ...
8 years ago (2012-12-17 17:25:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/11570020/12001
8 years ago (2012-12-17 17:33:29 UTC) #9
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
8 years ago (2012-12-17 20:23:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/11570020/12001
8 years ago (2012-12-17 20:27:09 UTC) #11
commit-bot: I haz the power
8 years ago (2012-12-17 20:28:11 UTC) #12
Message was sent while issue was closed.
Change committed as 173526

Powered by Google App Engine
This is Rietveld 408576698