| Index: chrome/browser/media/media_stream_device_permissions.cc
|
| diff --git a/chrome/browser/media/media_stream_device_permissions.cc b/chrome/browser/media/media_stream_device_permissions.cc
|
| index e1a1c738b87a4fff9a8abd9ddf4d5cceabe3f4bd..71b77ae150da8ac58a2a0dc93b95bb8bde2e6f6f 100644
|
| --- a/chrome/browser/media/media_stream_device_permissions.cc
|
| +++ b/chrome/browser/media/media_stream_device_permissions.cc
|
| @@ -16,7 +16,7 @@
|
|
|
| bool ShouldPersistContentSetting(ContentSetting setting,
|
| const GURL& origin,
|
| - content::MediaStreamRequestType type) {
|
| + bool is_pepper_request) {
|
| // When the request is from an invalid scheme we don't persist it.
|
| if (!ContentSettingsPattern::FromURLNoWildcard(origin).IsValid())
|
| return false;
|
| @@ -27,7 +27,7 @@ bool ShouldPersistContentSetting(ContentSetting setting,
|
|
|
| // Pepper requests should always be persisted to prevent annoying users of
|
| // plugins.
|
| - if (type == content::MEDIA_OPEN_DEVICE)
|
| + if (is_pepper_request)
|
| return true;
|
|
|
| // We persist requests from secure origins.
|
|
|