diff options
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_popup.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_popup.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup.h b/chrome/browser/autocomplete/autocomplete_popup.h index 395f774..160c766 100644 --- a/chrome/browser/autocomplete/autocomplete_popup.h +++ b/chrome/browser/autocomplete/autocomplete_popup.h @@ -385,15 +385,12 @@ class AutocompletePopupModel : public ACControllerListener, public Task { // Timer that tracks how long it's been since the last provider update we // received. Instead of displaying each update immediately, we batch updates // into groups, which reduces flicker. - // - // NOTE: Both coalesce_timer_ and max_delay_timer_ (below) are set up during - // the constructor, and are guaranteed non-NULL for the life of the popup. - scoped_ptr<Timer> coalesce_timer_; + base::OneShotTimer<AutocompletePopupModel> coalesce_timer_; // Timer that tracks how long it's been since the last time we updated the // onscreen results. This is used to ensure that the popup is somewhat // responsive even when the user types continuously. - scoped_ptr<Timer> max_delay_timer_; + base::RepeatingTimer<AutocompletePopupModel> max_delay_timer_; // The line that's currently hovered. If we're not drawing a hover rect, // this will be kNoMatch, even if the cursor is over the popup contents. |