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

Side by Side Diff: chrome/browser/media/midi_permission_context.cc

Issue 2914963002: Allow web-midi permission to be granted to insecure origins (Closed)
Patch Set: Allow web-midi permission to be granted to insecure origins Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/media/midi_permission_context_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/media/midi_permission_context.h" 5 #include "chrome/browser/media/midi_permission_context.h"
6 6
7 MidiPermissionContext::MidiPermissionContext(Profile* profile) 7 MidiPermissionContext::MidiPermissionContext(Profile* profile)
8 : PermissionContextBase(profile, CONTENT_SETTINGS_TYPE_MIDI) {} 8 : PermissionContextBase(profile, CONTENT_SETTINGS_TYPE_MIDI) {}
9 9
10 MidiPermissionContext::~MidiPermissionContext() { 10 MidiPermissionContext::~MidiPermissionContext() {
11 } 11 }
12 12
13 ContentSetting MidiPermissionContext::GetPermissionStatusInternal( 13 ContentSetting MidiPermissionContext::GetPermissionStatusInternal(
14 content::RenderFrameHost* render_frame_host, 14 content::RenderFrameHost* render_frame_host,
15 const GURL& requesting_origin, 15 const GURL& requesting_origin,
16 const GURL& embedding_origin) const { 16 const GURL& embedding_origin) const {
17 return CONTENT_SETTING_ALLOW; 17 return CONTENT_SETTING_ALLOW;
18 } 18 }
19 19
20 bool MidiPermissionContext::IsRestrictedToSecureOrigins() const { 20 bool MidiPermissionContext::IsRestrictedToSecureOrigins() const {
21 return true; 21 return false;
22 } 22 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/midi_permission_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698