Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2610)

Unified Diff: chrome/browser/gtk/location_bar_view_gtk.cc

Issue 5339014: [gtk] tab in omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better comment Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698