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

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

Issue 1754093002: Use GURLs instead of patterns in SetContentSetting in mic and camera (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scoping_set_content_setting
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « chrome/browser/media/media_stream_devices_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/media/media_stream_devices_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698