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

Unified Diff: content/public/test/mock_resource_context.h

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix for Android. 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: content/public/test/mock_resource_context.h
diff --git a/content/public/test/mock_resource_context.h b/content/public/test/mock_resource_context.h
index 8f1791a5f8bb9b7b2e0746409ce1ff47280590ef..e42f5c62b1911fa03b2af6b5eadf814f9949d3f9 100644
--- a/content/public/test/mock_resource_context.h
+++ b/content/public/test/mock_resource_context.h
@@ -28,25 +28,10 @@ class MockResourceContext : public ResourceContext {
// ResourceContext implementation:
virtual net::HostResolver* GetHostResolver() OVERRIDE;
virtual net::URLRequestContext* GetRequestContext() OVERRIDE;
- virtual bool AllowMicAccess(const GURL& origin) OVERRIDE;
- virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE;
-
- //////////////////////////////////////////////////////////////////////////
- // The following functions are used by tests.
- void set_mic_access(bool mic_allowed) {
- mic_allowed_ = mic_allowed;
- }
-
- void set_camera_access(bool camera_allowed) {
- camera_allowed_ = camera_allowed;
- }
private:
net::URLRequestContext* test_request_context_;
- bool mic_allowed_;
- bool camera_allowed_;
-
DISALLOW_COPY_AND_ASSIGN(MockResourceContext);
};

Powered by Google App Engine
This is Rietveld 408576698