Chromium Code Reviews| Index: chrome/browser/ui/search/instant_controller.cc |
| diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc |
| index 1d6471ffd2baef8dfcea4dc3beaf8a24d3a5f14c..3e989a219d90a932494a06c5c297faf3f7b80151 100644 |
| --- a/chrome/browser/ui/search/instant_controller.cc |
| +++ b/chrome/browser/ui/search/instant_controller.cc |
| @@ -610,6 +610,17 @@ void InstantController::OnCancel(const AutocompleteMatch& match, |
| overlay_->CancelSelection(full_text); |
| } |
| +void InstantController::OnNavigateToURL() { |
| + if (!extended_enabled_) |
| + return; |
| + |
| + if (instant_tab_) |
| + instant_tab_->Submit(L""); |
|
sreeram
2013/04/01 16:22:01
Re-using the Submit() method causes a small proble
robertshield
2013/04/01 18:14:49
Ok, I prevented overwriting of the query_ field in
|
| + |
| + if (overlay_) |
| + overlay_->Submit(L""); |
|
sreeram
2013/04/01 16:22:01
Remove this. We shouldn't need to send any such in
robertshield
2013/04/01 18:14:49
Done.
|
| +} |
| + |
| content::WebContents* InstantController::GetOverlayContents() const { |
| return overlay_ ? overlay_->contents() : NULL; |
| } |