Index: chrome/browser/renderer_host/render_view_host.cc |
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc |
index 8310a71ac9f477cebca321e81d14d7836ffe3312..3e151029de70e40d2c9a4bb315a3808326585e5a 100644 |
--- a/chrome/browser/renderer_host/render_view_host.cc |
+++ b/chrome/browser/renderer_host/render_view_host.cc |
@@ -862,6 +862,7 @@ void RenderViewHost::OnMessageReceived(const IPC::Message& msg) { |
IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnMsgFocusedNodeChanged) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SetDisplayingPDFContent, |
OnSetDisplayingPDFContent) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SetSuggestResult, OnSetSuggestResult) |
// Have the super handle all other messages. |
IPC_MESSAGE_UNHANDLED(RenderWidgetHost::OnMessageReceived(msg)) |
IPC_END_MESSAGE_MAP_EX() |
@@ -2078,3 +2079,12 @@ void RenderViewHost::OnWebDatabaseAccessed(const GURL& url, |
void RenderViewHost::OnSetDisplayingPDFContent() { |
delegate_->SetDisplayingPDFContent(); |
} |
+ |
+void RenderViewHost::OnSetSuggestResult(int32 page_id, |
+ const std::string& result) { |
+ RenderViewHostDelegate::BrowserIntegration* integration_delegate = |
+ delegate_->GetBrowserIntegrationDelegate(); |
+ if (!integration_delegate) |
+ return; |
+ integration_delegate->OnSetSuggestResult(page_id, result); |
+} |