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

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

Issue 1828803003: Media permissions: Remove plumbing for insecure pepper requests in Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and fix tests Created 4 years, 6 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/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 bb1d9d6330d14873b7ce2f77453435f23d52d5f9..632c331bf6204a5a26324d18c030a0a97dfb54d2 100644
--- a/chrome/browser/media/media_stream_devices_controller_browsertest.cc
+++ b/chrome/browser/media/media_stream_devices_controller_browsertest.cc
@@ -703,21 +703,6 @@ IN_PROC_BROWSER_TEST_F(MediaStreamDevicesControllerTest,
ASSERT_FALSE(controller.IsAskingForVideo());
}
-// For non-Pepper request from insecure origin, if it's ALLOW, it will be
-// changed to ASK.
-IN_PROC_BROWSER_TEST_F(MediaStreamDevicesControllerTest,
- NonPepperRequestInsecure) {
- InitWithUrl(GURL("http://www.example.com"));
- SetContentSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_ALLOW);
-
- MediaStreamDevicesController controller(
- GetWebContents(), CreateRequest(example_audio_id(), example_video_id()),
- base::Bind(&MediaStreamDevicesControllerTest::OnMediaStreamResponse,
- this));
- ASSERT_TRUE(controller.IsAskingForAudio());
- ASSERT_TRUE(controller.IsAskingForVideo());
-}
-
// Request and block microphone and camera access with kill switch.
IN_PROC_BROWSER_TEST_F(MediaStreamDevicesControllerTest,
RequestAndKillSwitchMicCam) {

Powered by Google App Engine
This is Rietveld 408576698