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

Side by Side Diff: chrome/browser/ui/startup/bad_flags_prompt.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 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/ui/startup/bad_flags_prompt.h" 5 #include "chrome/browser/ui/startup/bad_flags_prompt.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/infobars/infobar_service.h" 9 #include "chrome/browser/infobars/infobar_service.h"
10 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h" 10 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
(...skipping 20 matching lines...) Expand all
31 switches::kSingleProcess, 31 switches::kSingleProcess,
32 switches::kNoSandbox, 32 switches::kNoSandbox,
33 switches::kDisableWebSecurity, 33 switches::kDisableWebSecurity,
34 // Browser plugin is dangerous on regular pages because it breaks the Same 34 // Browser plugin is dangerous on regular pages because it breaks the Same
35 // Origin Policy. 35 // Origin Policy.
36 switches::kEnableBrowserPluginForAllViewTypes, 36 switches::kEnableBrowserPluginForAllViewTypes,
37 extensions::switches::kExtensionsOnChromeURLs, 37 extensions::switches::kExtensionsOnChromeURLs,
38 // This parameter should be used only for server side developments. 38 // This parameter should be used only for server side developments.
39 switches::kTranslateScriptURL, 39 switches::kTranslateScriptURL,
40 translate::switches::kTranslateSecurityOrigin, 40 translate::switches::kTranslateSecurityOrigin,
41 #if defined(ENABLE_WEBRTC)
42 // This flag disables security of media packets in WebRTC.
43 switches::kDisableWebRtcEncryption,
44 #endif
41 NULL 45 NULL
42 }; 46 };
43 47
44 for (const char** flag = kBadFlags; *flag; ++flag) { 48 for (const char** flag = kBadFlags; *flag; ++flag) {
45 if (CommandLine::ForCurrentProcess()->HasSwitch(*flag)) { 49 if (CommandLine::ForCurrentProcess()->HasSwitch(*flag)) {
46 SimpleAlertInfoBarDelegate::Create( 50 SimpleAlertInfoBarDelegate::Create(
47 InfoBarService::FromWebContents(web_contents), 51 InfoBarService::FromWebContents(web_contents),
48 InfoBarDelegate::kNoIconID, 52 InfoBarDelegate::kNoIconID,
49 l10n_util::GetStringFUTF16(IDS_BAD_FLAGS_WARNING_MESSAGE, 53 l10n_util::GetStringFUTF16(IDS_BAD_FLAGS_WARNING_MESSAGE,
50 UTF8ToUTF16(std::string("--") + *flag)), 54 UTF8ToUTF16(std::string("--") + *flag)),
51 false); 55 false);
52 return; 56 return;
53 } 57 }
54 } 58 }
55 } 59 }
56 60
57 } // namespace chrome 61 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698