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

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: Build fix for Android. 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 2464 matching lines...) Expand 10 before | Expand all | Expand 10 after
2475 result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_HANDLES, 2475 result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_HANDLES,
2476 sandbox::TargetPolicy::HANDLES_DUP_ANY, 2476 sandbox::TargetPolicy::HANDLES_DUP_ANY,
2477 L"File"); 2477 L"File");
2478 if (result != sandbox::SBOX_ALL_OK) { 2478 if (result != sandbox::SBOX_ALL_OK) {
2479 *success = false; 2479 *success = false;
2480 return; 2480 return;
2481 } 2481 }
2482 } 2482 }
2483 #endif 2483 #endif
2484 2484
2485 bool ChromeContentBrowserClient::CheckMediaAccessPermission(
2486 content::BrowserContext* browser_context,
2487 const GURL& security_origin,
2488 content::MediaStreamType type) {
2489 return MediaCaptureDevicesDispatcher::GetInstance()
2490 ->CheckMediaAccessPermission(
2491 browser_context, security_origin, type);
2492 }
2493
2485 content::DevToolsManagerDelegate* 2494 content::DevToolsManagerDelegate*
2486 ChromeContentBrowserClient::GetDevToolsManagerDelegate() { 2495 ChromeContentBrowserClient::GetDevToolsManagerDelegate() {
2487 return new ChromeDevToolsManagerDelegate(); 2496 return new ChromeDevToolsManagerDelegate();
2488 } 2497 }
2489 2498
2490 bool ChromeContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( 2499 bool ChromeContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle(
2491 content::BrowserContext* browser_context, 2500 content::BrowserContext* browser_context,
2492 const GURL& url) { 2501 const GURL& url) {
2493 #if defined(ENABLE_EXTENSIONS) 2502 #if defined(ENABLE_EXTENSIONS)
2494 Profile* profile = Profile::FromBrowserContext(browser_context); 2503 Profile* profile = Profile::FromBrowserContext(browser_context);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 switches::kDisableWebRtcEncryption, 2582 switches::kDisableWebRtcEncryption,
2574 }; 2583 };
2575 to_command_line->CopySwitchesFrom(from_command_line, 2584 to_command_line->CopySwitchesFrom(from_command_line,
2576 kWebRtcDevSwitchNames, 2585 kWebRtcDevSwitchNames,
2577 arraysize(kWebRtcDevSwitchNames)); 2586 arraysize(kWebRtcDevSwitchNames));
2578 } 2587 }
2579 } 2588 }
2580 #endif // defined(ENABLE_WEBRTC) 2589 #endif // defined(ENABLE_WEBRTC)
2581 2590
2582 } // namespace chrome 2591 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698