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

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

Issue 9539011: Make socket permission also allow Pepper sockets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
Index: content/browser/renderer_host/pepper_message_filter.cc
diff --git a/content/browser/renderer_host/pepper_message_filter.cc b/content/browser/renderer_host/pepper_message_filter.cc
index 21327c6d18bc424afa65010f2d50bbf8cf252a22..ad472e06fdebda0445207177d6cfef9664d1f5b0 100644
--- a/content/browser/renderer_host/pepper_message_filter.cc
+++ b/content/browser/renderer_host/pepper_message_filter.cc
@@ -719,7 +719,8 @@ bool PepperMessageFilter::CanUseSocketAPIs(int32 render_id) {
return false;
if (!content::GetContentClient()->browser()->AllowSocketAPI(
- site_instance->GetSite())) {
+ site_instance->GetBrowserContext(),
+ site_instance->GetSite())) {
LOG(ERROR) << "Host " << site_instance->GetSite().host()
<< " cannot use socket API";
return false;

Powered by Google App Engine
This is Rietveld 408576698