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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 37253002: Add command line flag --disable-webrtc-encryption for dev and canary channels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating how the disable information is passed to PeerConnection. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index e4347f8edd524a8b1ac01c4988b837de54b0225c..689d4d793595b4758e8d402f14d806431799226f 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -93,6 +93,7 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/chrome_version_info.h"
#include "chrome/common/env_vars.h"
#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/extension.h"
@@ -1428,6 +1429,17 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
chromeos::switches::kLoginProfile, login_profile);
#endif
+#if defined(ENABLE_WEBRTC)
+ if (VersionInfo::GetChannel() <= VersionInfo::CHANNEL_DEV) {
+ static const char* const kWebRtcDevSwitchNames[] = {
+ switches::kDisableWebRtcEncryption,
+ };
+ command_line->CopySwitchesFrom(browser_command_line,
sky 2013/10/28 14:10:22 Can you simplify to AppendSwitch?
Henrik Grunell 2013/10/28 15:06:57 Yes after checking with browser_command_line->HasS
sky 2013/10/28 19:49:15 You're right, this is fine.
+ kWebRtcDevSwitchNames,
+ arraysize(kWebRtcDevSwitchNames));
+ }
+#endif
+
content::RenderProcessHost* process =
content::RenderProcessHost::FromID(child_process_id);
if (process) {
« no previous file with comments | « no previous file | chrome/browser/ui/startup/bad_flags_prompt.cc » ('j') | content/public/common/content_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698