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

Unified Diff: chromecast/shell/browser/cast_browser_context.cc

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 4 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: chromecast/shell/browser/cast_browser_context.cc
diff --git a/chromecast/shell/browser/cast_browser_context.cc b/chromecast/shell/browser/cast_browser_context.cc
index 295c34b8d4a848bdfcb4b6b044e2f145f360af96..f1a5c201ba28419aef6991ff11030a29aa1bdbf0 100644
--- a/chromecast/shell/browser/cast_browser_context.cc
+++ b/chromecast/shell/browser/cast_browser_context.cc
@@ -22,7 +22,8 @@ namespace shell {
class CastBrowserContext::CastResourceContext :
public content::ResourceContext {
public:
- CastResourceContext(URLRequestContextFactory* url_request_context_factory) :
+ explicit CastResourceContext(
+ URLRequestContextFactory* url_request_context_factory) :
url_request_context_factory_(url_request_context_factory) {}
virtual ~CastResourceContext() {}
@@ -37,14 +38,6 @@ class CastBrowserContext::CastResourceContext :
GetURLRequestContext();
}
- virtual bool AllowMicAccess(const GURL& origin) OVERRIDE {
- return false;
- }
-
- virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE {
- return false;
- }
-
private:
URLRequestContextFactory* url_request_context_factory_;

Powered by Google App Engine
This is Rietveld 408576698