Chromium Code Reviews| Index: chrome/browser/instant/instant_controller.cc |
| diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc |
| index f6c77257a3a0fc552bcbffa261dddca92df7700b..8182971768a8dea4e4312fcf6bc6dcd6ad9915a9 100644 |
| --- a/chrome/browser/instant/instant_controller.cc |
| +++ b/chrome/browser/instant/instant_controller.cc |
| @@ -742,6 +742,14 @@ void InstantController::ShowInstantPreview(InstantShownReason reason, |
| ShowLoader(reason, height, units); |
| } |
| +void InstantController::StartCapturingKeyStrokes( |
| + const content::WebContents* contents) { |
| + // Ignore unless the loader is active and on the NTP. |
| + if (extended_enabled_ && !instant_tab_ && loader_->contents() == contents && |
|
sreeram
2012/12/04 21:54:58
You can drop the "loader_->contents() == contents"
samarth
2012/12/04 22:13:43
Done.
|
| + model_.mode().is_ntp()) |
| + browser_->FocusOmniboxInvisibly(); |
| +} |
| + |
| void InstantController::SwappedWebContents() { |
| model_.SetPreviewContents(GetPreviewContents()); |
| } |