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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

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: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 0ef0cbff42d1d9e4cec15966fda1fe4e2a010a22..52e46fca2cc9056fb07b7f53c40a1cc59a964cb2 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -955,23 +955,6 @@ void ProfileIOData::ResourceContext::CreateKeygenHandler(
#endif
}
-bool ProfileIOData::ResourceContext::AllowMicAccess(const GURL& origin) {
- return AllowContentAccess(origin, CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC);
-}
-
-bool ProfileIOData::ResourceContext::AllowCameraAccess(const GURL& origin) {
- return AllowContentAccess(origin, CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA);
-}
-
-bool ProfileIOData::ResourceContext::AllowContentAccess(
- const GURL& origin, ContentSettingsType type) {
- HostContentSettingsMap* content_settings =
- io_data_->GetHostContentSettingsMap();
- ContentSetting setting = content_settings->GetContentSetting(
- origin, origin, type, NO_RESOURCE_IDENTIFIER);
- return setting == CONTENT_SETTING_ALLOW;
-}
-
ResourceContext::SaltCallback
ProfileIOData::ResourceContext::GetMediaDeviceIDSalt() {
return io_data_->GetMediaDeviceIDSalt();

Powered by Google App Engine
This is Rietveld 408576698