OLD | NEW |
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/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/infobars/infobar_service.h" | 10 #include "chrome/browser/infobars/infobar_service.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 return; | 36 return; |
37 | 37 |
38 // Unsupported flags for which to display a warning that "stability and | 38 // Unsupported flags for which to display a warning that "stability and |
39 // security will suffer". | 39 // security will suffer". |
40 static const char* kBadFlags[] = { | 40 static const char* kBadFlags[] = { |
41 // These flags disable sandbox-related security. | 41 // These flags disable sandbox-related security. |
42 switches::kDisableGpuSandbox, | 42 switches::kDisableGpuSandbox, |
43 switches::kDisableSeccompFilterSandbox, | 43 switches::kDisableSeccompFilterSandbox, |
44 switches::kDisableSetuidSandbox, | 44 switches::kDisableSetuidSandbox, |
45 switches::kDisableWebSecurity, | 45 switches::kDisableWebSecurity, |
| 46 #if !defined(DISABLE_NACL) |
46 switches::kNaClDangerousNoSandboxNonSfi, | 47 switches::kNaClDangerousNoSandboxNonSfi, |
| 48 #endif |
47 switches::kNoSandbox, | 49 switches::kNoSandbox, |
48 switches::kSingleProcess, | 50 switches::kSingleProcess, |
49 | 51 |
50 // These flags disable or undermine the Same Origin Policy. | 52 // These flags disable or undermine the Same Origin Policy. |
51 switches::kTrustedSpdyProxy, | 53 switches::kTrustedSpdyProxy, |
52 translate::switches::kTranslateSecurityOrigin, | 54 translate::switches::kTranslateSecurityOrigin, |
53 | 55 |
54 // These flags undermine HTTPS / connection security. | 56 // These flags undermine HTTPS / connection security. |
55 #if defined(ENABLE_WEBRTC) | 57 #if defined(ENABLE_WEBRTC) |
56 switches::kDisableWebRtcEncryption, | 58 switches::kDisableWebRtcEncryption, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 user_data_dir.LossyDisplayName()); | 116 user_data_dir.LossyDisplayName()); |
115 | 117 |
116 if (cleanup_resource_bundle) | 118 if (cleanup_resource_bundle) |
117 ResourceBundle::CleanupSharedInstance(); | 119 ResourceBundle::CleanupSharedInstance(); |
118 | 120 |
119 // More complex dialogs cannot be shown before the earliest calls here. | 121 // More complex dialogs cannot be shown before the earliest calls here. |
120 ShowMessageBox(NULL, title, message, chrome::MESSAGE_BOX_TYPE_WARNING); | 122 ShowMessageBox(NULL, title, message, chrome::MESSAGE_BOX_TYPE_WARNING); |
121 } | 123 } |
122 | 124 |
123 } // namespace chrome | 125 } // namespace chrome |
OLD | NEW |