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

Unified Diff: chrome/browser/instant/instant_client.cc

Issue 11466007: Add new IPC for searchbox to pipe SearchBox NavigateContentWindow calls to the browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: No longer commit on SearchBoxNavigate IPC. Created 8 years 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/instant/instant_client.cc
diff --git a/chrome/browser/instant/instant_client.cc b/chrome/browser/instant/instant_client.cc
index 50d78523d2a7b9b2e787deef2094fd8918063ce5..b1777c3a275e414c3ea6b6bad39c0624be824a6a 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;
@@ -141,3 +143,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);
+}

Powered by Google App Engine
This is Rietveld 408576698