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

Issue 645303003: Parametrize Suggest polling strategy and delay. Also add a parameter (Closed)

Created:
6 years, 2 months ago by Bart N.
Modified:
6 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Parametrize Suggest polling strategy and delay. Also add a parameter to disable results caching. TESTS=OmniboxFieldTrialTest + manual tests. BUG=420903 Committed: https://crrev.com/1c07e721b7a3dcc01b34728c5a9eea80d907a432 Cr-Commit-Position: refs/heads/master@{#301413}

Patch Set 1 #

Total comments: 32

Patch Set 2 : Addressed Mark's & Harry's comments. #

Total comments: 4

Patch Set 3 : Added unit tests to OmniboxFieldTrialTest. #

Total comments: 6

Patch Set 4 : Added more tests. #

Total comments: 2

Patch Set 5 : Fixed two comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -20 lines) Patch
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M components/omnibox/omnibox_field_trial.h View 1 2 3 chunks +19 lines, -0 lines 0 comments Download
M components/omnibox/omnibox_field_trial.cc View 1 2 3 chunks +32 lines, -0 lines 0 comments Download
M components/omnibox/omnibox_field_trial_unittest.cc View 1 2 3 4 4 chunks +81 lines, -1 line 0 comments Download
M components/omnibox/search_provider.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M components/omnibox/search_provider.cc View 1 4 chunks +25 lines, -10 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
Bart N.
Mark & Harry, can you please take a look? I'm planning to add unit tests ...
6 years, 2 months ago (2014-10-20 21:15:57 UTC) #2
H Fung
https://codereview.chromium.org/645303003/diff/1/components/omnibox/omnibox_field_trial.cc File components/omnibox/omnibox_field_trial.cc (right): https://codereview.chromium.org/645303003/diff/1/components/omnibox/omnibox_field_trial.cc#newcode349 components/omnibox/omnibox_field_trial.cc:349: kSuggestPollingDelaySinceTheLastRequestRule) == "true"; I'm not sure if you want ...
6 years, 2 months ago (2014-10-20 21:59:42 UTC) #3
Mark P
https://codereview.chromium.org/645303003/diff/1/components/omnibox/omnibox_field_trial.cc File components/omnibox/omnibox_field_trial.cc (right): https://codereview.chromium.org/645303003/diff/1/components/omnibox/omnibox_field_trial.cc#newcode356 components/omnibox/omnibox_field_trial.cc:356: *polling_delay_ms <= 0) { nit: parans around binary operator ...
6 years, 2 months ago (2014-10-21 21:28:22 UTC) #4
Bart N.
Thanks Mark and Harry. See my replies (one question about answers, as I'm not sure ...
6 years, 2 months ago (2014-10-22 01:19:08 UTC) #5
Mark P
No complaints about the core logic; feel free to write unit tests to the extent ...
6 years, 2 months ago (2014-10-22 20:33:07 UTC) #6
Bart N.
I've added some unit tests and for the remaining logic I'm planning to test by ...
6 years, 2 months ago (2014-10-22 22:04:57 UTC) #7
Mark P
https://codereview.chromium.org/645303003/diff/40001/components/omnibox/omnibox_field_trial_unittest.cc File components/omnibox/omnibox_field_trial_unittest.cc (right): https://codereview.chromium.org/645303003/diff/40001/components/omnibox/omnibox_field_trial_unittest.cc#newcode107 components/omnibox/omnibox_field_trial_unittest.cc:107: bool expected_from_last_keystroke, this and below might as well be ...
6 years, 2 months ago (2014-10-22 23:03:15 UTC) #8
Bart N.
Thanks for the quick review. https://codereview.chromium.org/645303003/diff/40001/components/omnibox/omnibox_field_trial_unittest.cc File components/omnibox/omnibox_field_trial_unittest.cc (right): https://codereview.chromium.org/645303003/diff/40001/components/omnibox/omnibox_field_trial_unittest.cc#newcode107 components/omnibox/omnibox_field_trial_unittest.cc:107: bool expected_from_last_keystroke, On 2014/10/22 ...
6 years, 2 months ago (2014-10-23 01:42:54 UTC) #9
H Fung
lgtm https://codereview.chromium.org/645303003/diff/60001/components/omnibox/omnibox_field_trial_unittest.cc File components/omnibox/omnibox_field_trial_unittest.cc (right): https://codereview.chromium.org/645303003/diff/60001/components/omnibox/omnibox_field_trial_unittest.cc#newcode68 components/omnibox/omnibox_field_trial_unittest.cc:68: // EXPECTS that OmniboxFieldTrial::GetSuggestPollingStrategy returns EXPECT()s instead of ...
6 years, 2 months ago (2014-10-23 17:58:58 UTC) #10
Mark P
lgtm; note harry's minor comment
6 years, 2 months ago (2014-10-23 18:33:45 UTC) #11
Bart N.
Thanks. I'm doing more sanity tests and will submit sometime later this week. https://codereview.chromium.org/645303003/diff/60001/components/omnibox/omnibox_field_trial_unittest.cc File ...
6 years, 2 months ago (2014-10-23 19:19:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645303003/80001
6 years, 1 month ago (2014-10-27 17:52:07 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/20295)
6 years, 1 month ago (2014-10-27 17:59:39 UTC) #16
Bart N.
Adding Instant folks to LGTM the tiny change in chrome/browser/ui/search/.
6 years, 1 month ago (2014-10-27 18:02:46 UTC) #18
samarth
lgtm for the test change
6 years, 1 month ago (2014-10-27 18:13:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645303003/80001
6 years, 1 month ago (2014-10-27 18:19:27 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-10-27 19:34:31 UTC) #22
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 19:35:41 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1c07e721b7a3dcc01b34728c5a9eea80d907a432
Cr-Commit-Position: refs/heads/master@{#301413}

Powered by Google App Engine
This is Rietveld 408576698