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

Unified Diff: components/nacl/loader/nonsfi/irt_random.cc

Issue 1409633002: Non-SFI mode: Remove old Non-SFI code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « components/nacl/loader/nonsfi/irt_random.h ('k') | components/nacl/loader/nonsfi/irt_resource_open.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nonsfi/irt_random.cc
diff --git a/components/nacl/loader/nonsfi/irt_random.cc b/components/nacl/loader/nonsfi/irt_random.cc
deleted file mode 100644
index 273bf08739c6f0ec6585f2317ae5aa30561a1de4..0000000000000000000000000000000000000000
--- a/components/nacl/loader/nonsfi/irt_random.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 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.
-
-#include <errno.h>
-#include <unistd.h>
-
-#include "base/logging.h"
-#include "components/nacl/loader/nonsfi/irt_interfaces.h"
-#include "components/nacl/loader/nonsfi/irt_util.h"
-
-namespace nacl {
-namespace nonsfi {
-namespace {
-
-// FD for urandom.
-int secure_random_fd = -1;
-
-int IrtGetRandomBytes(void* buf, size_t count, size_t* nread) {
- DCHECK_NE(secure_random_fd, -1);
- return CheckErrorWithResult(read(secure_random_fd, buf, count),
- nread);
-}
-
-} // namespace
-
-const nacl_irt_random kIrtRandom = {
- IrtGetRandomBytes
-};
-
-void SetUrandomFd(int fd) {
- DCHECK_EQ(secure_random_fd, -1);
- secure_random_fd = fd;
-}
-
-} // namespace nonsfi
-} // namespace nacl
« no previous file with comments | « components/nacl/loader/nonsfi/irt_random.h ('k') | components/nacl/loader/nonsfi/irt_resource_open.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698