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

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

Issue 2697473002: Remove last usage functions from HostContentSettingsMap and clean up prefs (Closed)
Patch Set: fix up unit test Created 3 years, 10 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/media/webrtc/media_stream_devices_controller.cc
diff --git a/chrome/browser/media/webrtc/media_stream_devices_controller.cc b/chrome/browser/media/webrtc/media_stream_devices_controller.cc
index ba1a834f22c8f839ec770b58528c02d2e108d1da..1a7f75ab7087195af4340adeeda997736111cad2 100644
--- a/chrome/browser/media/webrtc/media_stream_devices_controller.cc
+++ b/chrome/browser/media/webrtc/media_stream_devices_controller.cc
@@ -414,21 +414,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