Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc |
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
index 2ad74b4b5d13e8cb2d2615476a390047cd6262b8..2d85d95687547dea6f33ce97e987c76ffa1f09c2 100644 |
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
@@ -259,6 +259,11 @@ AutocompleteMatch OmniboxEditModel::CurrentMatch( |
} |
bool OmniboxEditModel::UpdatePermanentText() { |
+ SearchProvider* search_provider = |
+ autocomplete_controller()->search_provider(); |
+ if (search_provider) |
+ search_provider->set_current_page_url(delegate_->GetURL()); |
+ |
// When there's new permanent text, and the user isn't interacting with the |
// omnibox, we want to revert the edit to show the new text. We could simply |
// define "interacting" as "the omnibox has focus", but we still allow updates |