| Index: chrome/browser/ui/search/instant_page.cc
|
| diff --git a/chrome/browser/ui/search/instant_page.cc b/chrome/browser/ui/search/instant_page.cc
|
| index a35d44fabfd12e9b26798bf12c2d683cb35f2479..ee59b354e0b072eb26f1d7cce15866628e50a45f 100644
|
| --- a/chrome/browser/ui/search/instant_page.cc
|
| +++ b/chrome/browser/ui/search/instant_page.cc
|
| @@ -98,14 +98,6 @@ bool InstantPage::ShouldProcessAboutToNavigateMainFrame() {
|
| return false;
|
| }
|
|
|
| -bool InstantPage::ShouldProcessSetSuggestions() {
|
| - return false;
|
| -}
|
| -
|
| -bool InstantPage::ShouldProcessShowInstantOverlay() {
|
| - return false;
|
| -}
|
| -
|
| bool InstantPage::ShouldProcessFocusOmnibox() {
|
| return false;
|
| }
|
| @@ -137,9 +129,6 @@ bool InstantPage::OnMessageReceived(const IPC::Message& message) {
|
|
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(InstantPage, message)
|
| - IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SetSuggestions, OnSetSuggestions)
|
| - IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ShowInstantOverlay,
|
| - OnShowInstantOverlay)
|
| IPC_MESSAGE_HANDLER(ChromeViewHostMsg_FocusOmnibox, OnFocusOmnibox)
|
| IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxNavigate,
|
| OnSearchBoxNavigate);
|
| @@ -204,33 +193,6 @@ void InstantPage::InstantSupportDetermined(bool supports_instant) {
|
| ClearContents();
|
| }
|
|
|
| -void InstantPage::OnSetSuggestions(
|
| - int page_id,
|
| - const std::vector<InstantSuggestion>& suggestions) {
|
| - if (!contents()->IsActiveEntry(page_id))
|
| - return;
|
| -
|
| - SearchTabHelper::FromWebContents(contents())->InstantSupportChanged(true);
|
| - if (!ShouldProcessSetSuggestions())
|
| - return;
|
| -
|
| - delegate_->SetSuggestions(contents(), suggestions);
|
| -}
|
| -
|
| -void InstantPage::OnShowInstantOverlay(int page_id,
|
| - int height,
|
| - InstantSizeUnits units) {
|
| - if (!contents()->IsActiveEntry(page_id))
|
| - return;
|
| -
|
| - SearchTabHelper::FromWebContents(contents())->InstantSupportChanged(true);
|
| - delegate_->LogDropdownShown();
|
| - if (!ShouldProcessShowInstantOverlay())
|
| - return;
|
| -
|
| - delegate_->ShowInstantOverlay(contents(), height, units);
|
| -}
|
| -
|
| void InstantPage::OnFocusOmnibox(int page_id, OmniboxFocusState state) {
|
| if (!contents()->IsActiveEntry(page_id))
|
| return;
|
|
|