summaryrefslogtreecommitdiffstats
path: root/base/nss_init.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 22:50:25 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 22:50:25 +0000
commit730fb13db106c6e9b29314b10221959bc4706650 (patch)
tree40801770d2db9afe260134b3ad4a93edf0b7b804 /base/nss_init.h
parentd1f2e93ff399c077d58e02c3799bb2bd817735fa (diff)
downloadchromium_src-730fb13db106c6e9b29314b10221959bc4706650.zip
chromium_src-730fb13db106c6e9b29314b10221959bc4706650.tar.gz
chromium_src-730fb13db106c6e9b29314b10221959bc4706650.tar.bz2
linux: call PR_Init on UI thread
It complains about being shutdown on the wrong thread otherwise. BUG=18410 Review URL: http://codereview.chromium.org/178062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/nss_init.h')
-rw-r--r--base/nss_init.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/nss_init.h b/base/nss_init.h
index 181d292..cd8ee77 100644
--- a/base/nss_init.h
+++ b/base/nss_init.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,6 +7,11 @@
namespace base {
+// Initialize NRPR if it isn't already initialized. This function is
+// thread-safe, and NSPR will only ever be initialized once. NSPR will be
+// properly shut down on program exit.
+void EnsureNSPRInit();
+
// Initialize NSS if it isn't already initialized. This must be called before
// any other NSS functions. This function is thread-safe, and NSS will only
// ever be initialized once. NSS will be properly shut down on program exit.