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

Unified Diff: content/browser/zygote_main_linux.cc

Issue 6672034: Load additional NSS library files in zygote main if remoting is enabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: load libs Created 9 years, 9 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
« base/nss_util.cc ('K') | « base/nss_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/zygote_main_linux.cc
diff --git a/content/browser/zygote_main_linux.cc b/content/browser/zygote_main_linux.cc
index b56a8a05ef7c4170258f5a27ccac669c332e0c51..851efd6d579ab782c9e6afeaba35fe456ce35665 100644
--- a/content/browser/zygote_main_linux.cc
+++ b/content/browser/zygote_main_linux.cc
@@ -601,19 +601,8 @@ static void PreSandboxInit() {
if (PathService::Get(base::DIR_MODULE, &module_path))
media::InitializeMediaLibrary(module_path);
- // Remoting requires NSS to function properly. It is not used for other
- // reasons so load NSS only if remoting is enabled.
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- if (command_line.HasSwitch(switches::kEnableRemoting)) {
- // We are going to fork to engage the sandbox and we have not loaded
- // any security modules so it is safe to disable the fork check in NSS.
- base::DisableNSSForkCheck();
-
- // Initialize NSS so that we load the necessary library files
- // before we enter the sandbox.
- base::ForceNSSNoDBInit();
- base::EnsureNSSInit();
- }
+ // Remoting requires NSS to function properly.
+ base::LoadNSSLibraries();
wtc 2011/03/17 20:03:55 IMPORTANT: why don't you need to disable the NSS f
Alpha Left Google 2011/03/17 22:31:34 Because we want to initalize only in the renderer
wtc 2011/03/18 18:46:31 Did you mean the renderer process cannot load any
Alpha Left Google 2011/03/18 18:49:12 When the renderer process starts (it is forked fro
// Ensure access to the Pepper plugins before the sandbox is turned on.
PepperPluginRegistry::PreloadModules();
« base/nss_util.cc ('K') | « base/nss_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698