summaryrefslogtreecommitdiffstats
path: root/base/rand_util_nacl.cc
diff options
context:
space:
mode:
authormseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-30 14:26:13 +0000
committermseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-30 14:26:13 +0000
commitead8c1fa606c9a8712c8bb71bdb656f5357c717f (patch)
tree323db9d7fcb386f92b913ab876d2e2e714a78f47 /base/rand_util_nacl.cc
parenta796f2093103d4895214b777ed2987a929c28f54 (diff)
downloadchromium_src-ead8c1fa606c9a8712c8bb71bdb656f5357c717f.zip
chromium_src-ead8c1fa606c9a8712c8bb71bdb656f5357c717f.tar.gz
chromium_src-ead8c1fa606c9a8712c8bb71bdb656f5357c717f.tar.bz2
Cleanup: Remove the C version of GetUrandomFD()
I originally added this in a #includable-from-C header so that it could be #included from NaCl-side code. However, having NaCl #include Chromium headers is not a clean interface, and this has since been replaced by runtime dependency injection. We move the function to a C++ header and put it into a namespace. Also fix the error return value for UrandomFD() so that it can't be confused with stdin. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2655 TEST=build Review URL: https://chromiumcodereview.appspot.com/10446043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139537 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/rand_util_nacl.cc')
-rw-r--r--base/rand_util_nacl.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/base/rand_util_nacl.cc b/base/rand_util_nacl.cc
index e885465..718da05 100644
--- a/base/rand_util_nacl.cc
+++ b/base/rand_util_nacl.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "base/rand_util.h"
-#include "base/rand_util_c.h"
#include "base/lazy_instance.h"
#include "base/logging.h"