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

Unified Diff: base/nss_init.cc

Issue 335001: Log the argument (NSS config directory) that we pass to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/nss_init.cc
===================================================================
--- base/nss_init.cc (revision 29830)
+++ base/nss_init.cc (working copy)
@@ -82,11 +82,13 @@
if (!database_dir.empty()) {
// Initialize with a persistant database (~/.pki/nssdb).
// Use "sql:" which can be shared by multiple processes safely.
- status = NSS_InitReadWrite(
- StringPrintf("sql:%s", database_dir.c_str()).c_str());
+ std::string nss_config_dir =
+ StringPrintf("sql:%s", database_dir.c_str());
+ status = NSS_InitReadWrite(nss_config_dir.c_str());
if (status != SECSuccess) {
LOG(ERROR) << "Error initializing NSS with a persistent "
- "databases: NSS error code " << PR_GetError();
+ "database (" << nss_config_dir
+ << "): NSS error code " << PR_GetError();
}
}
if (status != SECSuccess) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698