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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2811413002: Add check for renderer client id. (Closed)
Patch Set: Fix comment. Created 3 years, 8 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 | « content/browser/renderer_host/offscreen_canvas_provider_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 9986ff6686d9b1f4b136e33816a1a20056bc5b80..e779da3670b2c0ce4a7944ebba76613d91d1be91 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1363,8 +1363,10 @@ void RenderProcessHostImpl::CreateOffscreenCanvasProvider(
blink::mojom::OffscreenCanvasProviderRequest request) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!offscreen_canvas_provider_) {
+ // The client id gets converted to a uint32_t in FrameSinkId.
+ uint32_t renderer_client_id = base::checked_cast<uint32_t>(id_);
offscreen_canvas_provider_ =
- base::MakeUnique<OffscreenCanvasProviderImpl>();
+ base::MakeUnique<OffscreenCanvasProviderImpl>(renderer_client_id);
}
offscreen_canvas_provider_->Add(std::move(request));
}
« no previous file with comments | « content/browser/renderer_host/offscreen_canvas_provider_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698