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

Unified Diff: chrome/browser/media/media_capture_devices_dispatcher.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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/media/media_capture_devices_dispatcher.cc
diff --git a/chrome/browser/media/media_capture_devices_dispatcher.cc b/chrome/browser/media/media_capture_devices_dispatcher.cc
index f187793837661b0210025539654b8fb8e688ffb6..1daa001f6969f0cc0844481c8cf91d88f000ac2b 100644
--- a/chrome/browser/media/media_capture_devices_dispatcher.cc
+++ b/chrome/browser/media/media_capture_devices_dispatcher.cc
@@ -262,8 +262,9 @@ MediaCaptureDevicesDispatcher::MediaCaptureDevicesDispatcher()
#if defined(OS_MACOSX)
// AVFoundation is used for video/audio device monitoring and video capture.
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceQTKit)) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kForceQTKit)) {
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableAVFoundation);
}
#endif
@@ -573,7 +574,7 @@ void MediaCaptureDevicesDispatcher::ProcessScreenCaptureAccessRequest(
const bool origin_is_secure =
request.security_origin.SchemeIsSecure() ||
request.security_origin.SchemeIs(extensions::kExtensionScheme) ||
- CommandLine::ForCurrentProcess()->HasSwitch(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kAllowHttpScreenCapture);
// If basic conditions (screen capturing is enabled and origin is secure)
« no previous file with comments | « chrome/browser/media/encrypted_media_istypesupported_browsertest.cc ('k') | chrome/browser/media/test_license_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698