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

Side by Side Diff: chrome/browser/ui/startup/bad_flags_prompt.cc

Issue 398273002: [NaCl] Build fix for disable_nacl=1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drop kNaClPluginMimeType Created 6 years, 5 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/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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/plugin_manager.cc ('k') | chrome/common/extensions/chrome_manifest_handlers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698