| 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..ca26d43c4b6f5d8a6a4fbd9070de73834a8b79c0 100644
|
| --- a/chrome/browser/gtk/location_bar_view_gtk.cc
|
| +++ b/chrome/browser/gtk/location_bar_view_gtk.cc
|
| @@ -467,6 +467,15 @@ bool LocationBarViewGtk::OnCommitSuggestedText(
|
| return rv;
|
| }
|
|
|
| +bool LocationBarViewGtk::AcceptCurrentInstantPreview() {
|
| + InstantController* instant = browser_->instant();
|
| + if (instant && instant->IsCurrent()) {
|
| + instant->CommitCurrentPreview(INSTANT_COMMIT_PRESSED_ENTER);
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| void LocationBarViewGtk::OnSetSuggestedSearchText(
|
| const string16& suggested_text) {
|
| SetSuggestedText(suggested_text);
|
|
|