Index: chrome/browser/ui/views/omnibox/omnibox_view_win.cc |
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc |
index 69f16c20e2c9dfe17da4b3781d1b1229c8cc256a..09db17b12ab065ac87abcaff464af0f753fa79ba 100644 |
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc |
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc |
@@ -860,7 +860,8 @@ void OmniboxViewWin::InsertText(int position, const string16& text) { |
} |
void OmniboxViewWin::OnTemporaryTextMaybeChanged(const string16& display_text, |
- bool save_original_selection) { |
+ bool save_original_selection, |
+ bool notify_text_changed) { |
if (save_original_selection) |
GetSelection(original_selection_); |
@@ -872,7 +873,8 @@ void OmniboxViewWin::OnTemporaryTextMaybeChanged(const string16& display_text, |
// text and then arrowed to another entry with the same text, we'd still want |
// to move the caret. |
ScopedFreeze freeze(this, GetTextObjectModel()); |
- SetWindowTextAndCaretPos(display_text, display_text.length(), false, true); |
+ SetWindowTextAndCaretPos(display_text, display_text.length(), false, |
+ notify_text_changed); |
} |
bool OmniboxViewWin::OnInlineAutocompleteTextMaybeChanged( |
@@ -898,7 +900,6 @@ bool OmniboxViewWin::OnInlineAutocompleteTextMaybeChanged( |
void OmniboxViewWin::OnRevertTemporaryText() { |
SetSelectionRange(original_selection_); |
- TextChanged(); |
} |
void OmniboxViewWin::OnBeforePossibleChange() { |