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

Unified Diff: crypto/nss_util.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 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
Index: crypto/nss_util.cc
diff --git a/crypto/nss_util.cc b/crypto/nss_util.cc
index a53fa40acd5bfa3d25835a7a5d19df19d1aa1c3d..0d4b11419e6839221c29afe0abdc9d29e0bde705 100644
--- a/crypto/nss_util.cc
+++ b/crypto/nss_util.cc
@@ -73,7 +73,7 @@ std::string GetNSSErrorMessage() {
PRInt32 copied = PR_GetErrorText(error_text.get());
result = std::string(error_text.get(), copied);
} else {
- result = StringPrintf("NSS error code: %d", PR_GetError());
+ result = base::StringPrintf("NSS error code: %d", PR_GetError());
}
return result;
}
@@ -482,7 +482,7 @@ class NSSInitSingleton {
// Initialize with a persistent database (likely, ~/.pki/nssdb).
// Use "sql:" which can be shared by multiple processes safely.
std::string nss_config_dir =
- StringPrintf("sql:%s", database_dir.value().c_str());
+ base::StringPrintf("sql:%s", database_dir.value().c_str());
#if defined(OS_CHROMEOS)
status = NSS_Init(nss_config_dir.c_str());
#else
@@ -586,7 +586,7 @@ class NSSInitSingleton {
SECMODModule* LoadModule(const char* name,
const char* library_path,
const char* params) {
- std::string modparams = StringPrintf(
+ std::string modparams = base::StringPrintf(
"name=\"%s\" library=\"%s\" %s",
name, library_path, params ? params : "");
@@ -608,8 +608,8 @@ class NSSInitSingleton {
static PK11SlotInfo* OpenUserDB(const base::FilePath& path,
const char* description) {
const std::string modspec =
- StringPrintf("configDir='sql:%s' tokenDescription='%s'",
- path.value().c_str(), description);
+ base::StringPrintf("configDir='sql:%s' tokenDescription='%s'",
+ path.value().c_str(), description);
PK11SlotInfo* db_slot = SECMOD_OpenUserDB(modspec.c_str());
if (db_slot) {
if (PK11_NeedUserInit(db_slot))
« no previous file with comments | « courgette/memory_monitor.cc ('k') | dbus/dbus_statistics.cc » ('j') | ipc/ipc_message_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698