Index: chrome/browser/media/media_stream_devices_controller_browsertest.cc |
diff --git a/chrome/browser/media/media_stream_devices_controller_browsertest.cc b/chrome/browser/media/media_stream_devices_controller_browsertest.cc |
index bf7018cdd7a71b35e363906cce128f81e9afefd3..1c341fb283c9cf4b82052230d0cc68b67ee01c68 100644 |
--- a/chrome/browser/media/media_stream_devices_controller_browsertest.cc |
+++ b/chrome/browser/media/media_stream_devices_controller_browsertest.cc |
@@ -99,13 +99,11 @@ class MediaStreamDevicesControllerTest : public WebRtcTestBase { |
HostContentSettingsMap* content_settings = |
HostContentSettingsMapFactory::GetForProfile( |
Profile::FromBrowserContext(GetWebContents()->GetBrowserContext())); |
- ContentSettingsPattern pattern = |
- ContentSettingsPattern::FromURLNoWildcard(example_url_); |
- content_settings->SetContentSetting(pattern, pattern, |
- CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, |
- std::string(), mic_setting); |
- content_settings->SetContentSetting( |
- pattern, pattern, CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, |
+ content_settings->SetContentSettingDefaultScope( |
+ example_url_, GURL(), CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, |
+ std::string(), mic_setting); |
+ content_settings->SetContentSettingDefaultScope( |
+ example_url_, GURL(), CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, |
std::string(), cam_setting); |
} |