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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_HANDLES, 2487 result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_HANDLES,
2488 sandbox::TargetPolicy::HANDLES_DUP_ANY, 2488 sandbox::TargetPolicy::HANDLES_DUP_ANY,
2489 L"File"); 2489 L"File");
2490 if (result != sandbox::SBOX_ALL_OK) { 2490 if (result != sandbox::SBOX_ALL_OK) {
2491 *success = false; 2491 *success = false;
2492 return; 2492 return;
2493 } 2493 }
2494 } 2494 }
2495 #endif 2495 #endif
2496 2496
2497 bool ChromeContentBrowserClient::CheckMediaAccessPermission(
2498 content::BrowserContext* browser_context,
2499 const GURL& security_origin,
2500 content::MediaStreamType type) {
2501 return MediaCaptureDevicesDispatcher::GetInstance()
2502 ->CheckMediaAccessPermission(
2503 browser_context, security_origin, type);
2504 }
2505
2497 content::DevToolsManagerDelegate* 2506 content::DevToolsManagerDelegate*
2498 ChromeContentBrowserClient::GetDevToolsManagerDelegate() { 2507 ChromeContentBrowserClient::GetDevToolsManagerDelegate() {
2499 return new ChromeDevToolsManagerDelegate(); 2508 return new ChromeDevToolsManagerDelegate();
2500 } 2509 }
2501 2510
2502 bool ChromeContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( 2511 bool ChromeContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle(
2503 content::BrowserContext* browser_context, 2512 content::BrowserContext* browser_context,
2504 const GURL& url) { 2513 const GURL& url) {
2505 #if defined(ENABLE_EXTENSIONS) 2514 #if defined(ENABLE_EXTENSIONS)
2506 Profile* profile = Profile::FromBrowserContext(browser_context); 2515 Profile* profile = Profile::FromBrowserContext(browser_context);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 switches::kDisableWebRtcEncryption, 2594 switches::kDisableWebRtcEncryption,
2586 }; 2595 };
2587 to_command_line->CopySwitchesFrom(from_command_line, 2596 to_command_line->CopySwitchesFrom(from_command_line,
2588 kWebRtcDevSwitchNames, 2597 kWebRtcDevSwitchNames,
2589 arraysize(kWebRtcDevSwitchNames)); 2598 arraysize(kWebRtcDevSwitchNames));
2590 } 2599 }
2591 } 2600 }
2592 #endif // defined(ENABLE_WEBRTC) 2601 #endif // defined(ENABLE_WEBRTC)
2593 2602
2594 } // namespace chrome 2603 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698