From 91654243483e8986964813762d2b0305b54b0796 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Mon, 7 Oct 2013 16:25:17 -0400 Subject: [PATCH] Update ResourceContext for Chrome 30 See http://src.chromium.org/viewvc/chrome?view=revision&revision=215991. --- brightray/browser/browser_context.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/brightray/browser/browser_context.cc b/brightray/browser/browser_context.cc index 26b62f4d3167..e43607a196c8 100644 --- a/brightray/browser/browser_context.cc +++ b/brightray/browser/browser_context.cc @@ -44,6 +44,16 @@ private: return getter_->GetURLRequestContext(); } + // FIXME: We should probably allow clients to override this to implement more restrictive policies. + virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { + return true; + } + + // FIXME: We should probably allow clients to override this to implement more restrictive policies. + virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { + return true; + } + URLRequestContextGetter* getter_; };