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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2811913002: Pull code associated with a Media PermissionRequest out of MediaStreamDevicesController (Closed)
Patch Set: MediaRequest Created 3 years, 8 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/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index 2ffa65ef8ee43dbf1bbefa3c9554669cf2a7fe54..77cd82734424f053aaf59c66340a4020b1538d93 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -3128,16 +3128,16 @@ class MediaStreamDevicesControllerBrowserTest
// we should remove PermissionPromptDelegate and just use
// MockPermissionPromptFactory instead. The APIs are the same.
class TestPermissionPromptDelegate
- : public ::internal::PermissionPromptDelegate {
+ : public MediaStreamDevicesController::PermissionPromptDelegate {
public:
- void ShowPrompt(
- bool user_gesture,
- content::WebContents* web_contents,
- std::unique_ptr<MediaStreamDevicesController> controller) override {
+ void ShowPrompt(bool user_gesture,
+ content::WebContents* web_contents,
+ std::unique_ptr<MediaStreamDevicesController::Request>
+ request) override {
if (response_type_ == PermissionRequestManager::ACCEPT_ALL)
- controller->PermissionGranted();
+ request->PermissionGranted();
else if (response_type_ == PermissionRequestManager::DENY_ALL)
- controller->PermissionDenied();
+ request->PermissionDenied();
}
void set_response_type(

Powered by Google App Engine
This is Rietveld 408576698