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

Unified Diff: content/browser/frame_host/render_frame_message_filter.cc

Issue 2069853002: Ignore certain messages in plugin broker process if they are not sent by the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 months 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
« no previous file with comments | « no previous file | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_message_filter.cc
diff --git a/content/browser/frame_host/render_frame_message_filter.cc b/content/browser/frame_host/render_frame_message_filter.cc
index 98bd0fd5e3783c7150b678adff464706a4864953..bbffcca4fa9f4493e66edf629184e64e6b840f54 100644
--- a/content/browser/frame_host/render_frame_message_filter.cc
+++ b/content/browser/frame_host/render_frame_message_filter.cc
@@ -122,6 +122,9 @@ class RenderFrameMessageFilter::OpenChannelToPpapiBrokerCallback
void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
int* renderer_id) override {
+ // base::kNullProcessHandle indicates that the channel will be used by the
+ // browser itself. Make sure we never output that value here.
+ CHECK_NE(base::kNullProcessHandle, filter_->PeerHandle());
*renderer_handle = filter_->PeerHandle();
*renderer_id = filter_->render_process_id_;
}
@@ -155,6 +158,9 @@ class RenderFrameMessageFilter::OpenChannelToPpapiPluginCallback
void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
int* renderer_id) override {
+ // base::kNullProcessHandle indicates that the channel will be used by the
+ // browser itself. Make sure we never output that value here.
+ CHECK_NE(base::kNullProcessHandle, filter()->PeerHandle());
*renderer_handle = filter()->PeerHandle();
*renderer_id = filter()->render_process_id_;
}
« no previous file with comments | « no previous file | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698