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

Issue 985503002: Omnibox - Make Omnibox Extensions Ignore Stop() Calls Due to User Idleness (Closed)

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

Description

Omnibox - Make Omnibox Extensions Ignore Stop() Calls Due to User Idleness We normally send all providers a Stop() call after a certain amount of time (1.5 seconds I think) under the rationale that revising the suggestions list that late is disruptive to the user's experience. This doesn't make sense for explicitly-invoke omnibox extensions, which could be doing long-running processes under the hood. This change revises the AutocompleteProvider API to allow providers to differentiate these two types of Stop() calls. It makes KeywordProvider ignore the Stop() calls due to this inactivity timer. BUG=462501 Committed: https://crrev.com/8a37c38f75c3f9c7542fc93d349af5fc3617753e Cr-Commit-Position: refs/heads/master@{#319557}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Peter's comments #

Patch Set 3 : make unit tests compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -41 lines) Patch
M chrome/browser/autocomplete/autocomplete_controller.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.cc View 1 2 chunks +21 lines, -16 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/omnibox/autocomplete_provider.h View 1 2 chunks +17 lines, -6 lines 0 comments Download
M components/omnibox/autocomplete_provider.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M components/omnibox/keyword_provider.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/omnibox/keyword_provider.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download
M components/omnibox/search_provider.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/omnibox/search_provider.cc View 1 5 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Mark P
If you're okay with this approach, I'll convert the unit tests to reflect the revised ...
5 years, 9 months ago (2015-03-05 20:43:18 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/985503002/diff/1/chrome/browser/autocomplete/autocomplete_controller.h File chrome/browser/autocomplete/autocomplete_controller.h (right): https://codereview.chromium.org/985503002/diff/1/chrome/browser/autocomplete/autocomplete_controller.h#newcode205 chrome/browser/autocomplete/autocomplete_controller.h:205: bool user_inactivity_timer); Nit: How about "due_to_user_inactivity" or "from_inactivity_timer" ...
5 years, 9 months ago (2015-03-05 23:27:28 UTC) #3
Mark P
Please take another look. Also, I converted the unit tests to use the new API. ...
5 years, 9 months ago (2015-03-06 21:24:34 UTC) #4
Peter Kasting
LGTM
5 years, 9 months ago (2015-03-06 21:41:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/985503002/40001
5 years, 9 months ago (2015-03-06 22:15:05 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_rel_ng on ...
5 years, 9 months ago (2015-03-07 00:16:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/985503002/40001
5 years, 9 months ago (2015-03-07 05:06:50 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-07 05:59:08 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-07 05:59:53 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8a37c38f75c3f9c7542fc93d349af5fc3617753e
Cr-Commit-Position: refs/heads/master@{#319557}

Powered by Google App Engine
This is Rietveld 408576698