Index: chrome/browser/autocomplete/keyword_provider.cc |
diff --git a/chrome/browser/autocomplete/keyword_provider.cc b/chrome/browser/autocomplete/keyword_provider.cc |
index 693d824c7cafcd8581725be43f5fa9e29ce736fa..abf30e09e1ba0892b8fb7066315d4a711c83e7fa 100644 |
--- a/chrome/browser/autocomplete/keyword_provider.cc |
+++ b/chrome/browser/autocomplete/keyword_provider.cc |
@@ -461,8 +461,10 @@ void KeywordProvider::Observe(NotificationType type, |
switch (type.value) { |
case NotificationType::EXTENSION_OMNIBOX_INPUT_ENTERED: |
// Input has been accepted, so we're done with this input session. Ensure |
- // we don't send the OnInputCancelled event. |
+ // we don't send the OnInputCancelled event, or handle any more stray |
+ // suggestions_ready events. |
current_keyword_extension_id_.clear(); |
+ current_input_id_ = 0; |
return; |
case NotificationType::EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED: { |