Index: chrome/browser/gtk/location_bar_view_gtk.cc |
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc |
index 6447df68dcfc431e8e4a60ff5e1558729428140b..3a41c8dcf0d7db04c2270b97e2d9928e0f133238 100644 |
--- a/chrome/browser/gtk/location_bar_view_gtk.cc |
+++ b/chrome/browser/gtk/location_bar_view_gtk.cc |
@@ -467,6 +467,12 @@ bool LocationBarViewGtk::OnCommitSuggestedText( |
return rv; |
} |
+void LocationBarViewGtk::AcceptCurrentInstantPreview() { |
+ InstantController* instant = browser_->instant(); |
+ if (instant && instant->IsCurrent()) |
+ instant->CommitCurrentPreview(INSTANT_COMMIT_PRESSED_ENTER); |
+} |
+ |
void LocationBarViewGtk::OnSetSuggestedSearchText( |
const string16& suggested_text) { |
SetSuggestedText(suggested_text); |