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

Unified Diff: chrome/browser/media/media_stream_devices_controller.cc

Issue 1411653004: Remove last usage functions from HostContentSettingsMap Base URL: https://chromium.googlesource.com/chromium/src.git@simplify-host-content-settings
Patch Set: Created 5 years, 1 month 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/media/media_stream_devices_controller.cc
diff --git a/chrome/browser/media/media_stream_devices_controller.cc b/chrome/browser/media/media_stream_devices_controller.cc
index 34ff83368a5722d46f510a75d4ae6547113eed0a..a22a4cdb7cefd4fdbb1ee3abccf473696effca0e 100644
--- a/chrome/browser/media/media_stream_devices_controller.cc
+++ b/chrome/browser/media/media_stream_devices_controller.cc
@@ -331,21 +331,6 @@ content::MediaStreamDevices MediaStreamDevicesController::GetDevices(
}
} // switch
- if (audio_allowed) {
- HostContentSettingsMapFactory::GetForProfile(profile_)
- ->UpdateLastUsageByPattern(
- ContentSettingsPattern::FromURLNoWildcard(request_.security_origin),
- ContentSettingsPattern::Wildcard(),
- CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC);
- }
- if (video_allowed) {
- HostContentSettingsMapFactory::GetForProfile(profile_)
- ->UpdateLastUsageByPattern(
- ContentSettingsPattern::FromURLNoWildcard(request_.security_origin),
- ContentSettingsPattern::Wildcard(),
- CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA);
- }
-
return devices;
}

Powered by Google App Engine
This is Rietveld 408576698