Index: chrome/browser/instant/instant_client.cc |
diff --git a/chrome/browser/instant/instant_client.cc b/chrome/browser/instant/instant_client.cc |
index 8aa53fb6ca2b30ada42e2926c4dca76b2afb49e2..2e6f6f06e615dfd10ca5c4a6b2e14f0d2a7a2b57 100644 |
--- a/chrome/browser/instant/instant_client.cc |
+++ b/chrome/browser/instant/instant_client.cc |
@@ -92,6 +92,8 @@ bool InstantClient::OnMessageReceived(const IPC::Message& message) { |
StartCapturingKeyStrokes); |
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_StopCapturingKeyStrokes, |
StopCapturingKeyStrokes); |
+ IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxNavigate, |
+ SearchBoxNavigate); |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -130,3 +132,8 @@ void InstantClient::StopCapturingKeyStrokes(int page_id) { |
if (web_contents()->IsActiveEntry(page_id)) |
delegate_->StopCapturingKeyStrokes(); |
} |
+ |
+void InstantClient::SearchBoxNavigate(int page_id, const GURL& url) { |
+ if (web_contents()->IsActiveEntry(page_id)) |
+ delegate_->NavigateToURL(url); |
+} |