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

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_model.cc

Issue 11413217: Instant API: tell page whether the browser is capturing key strokes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@focus
Patch Set: Fix js error. Created 8 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/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 02eb0f1102c50386d8ad588f590a9878967eb2f1..ae24ee2f086aa1236efcb5db6902bff05837be2d 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -716,7 +716,7 @@ void OmniboxEditModel::OnSetFocus(bool control_down) {
control_key_state_ = control_down ? DOWN_WITHOUT_CHANGE : UP;
if (InstantController* instant = controller_->GetInstant())
- instant->OmniboxGotFocus();
+ instant->OmniboxGotFocus(true /* focus_is_visible */);
content::WebContents* web_contents = controller_->GetWebContents();
if (web_contents) {

Powered by Google App Engine
This is Rietveld 408576698