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

Unified Diff: mojo/edk/embedder/simple_platform_support.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to mojo::edk namespace in preparation for runtim flag Created 5 years, 3 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: mojo/edk/embedder/simple_platform_support.cc
diff --git a/third_party/mojo/src/mojo/edk/embedder/simple_platform_support.cc b/mojo/edk/embedder/simple_platform_support.cc
similarity index 88%
copy from third_party/mojo/src/mojo/edk/embedder/simple_platform_support.cc
copy to mojo/edk/embedder/simple_platform_support.cc
index 4207120fc7b91601c743c85f22f81a89e53b36f2..5eac98f1ee8e134d92b3a2645334d69e627a0baf 100644
--- a/third_party/mojo/src/mojo/edk/embedder/simple_platform_support.cc
+++ b/mojo/edk/embedder/simple_platform_support.cc
@@ -4,15 +4,15 @@
#include "mojo/edk/embedder/simple_platform_support.h"
-#include "base/rand_util.h"
+#include "crypto/random.h"
#include "mojo/edk/embedder/simple_platform_shared_buffer.h"
namespace mojo {
-namespace embedder {
+namespace edk {
void SimplePlatformSupport::GetCryptoRandomBytes(void* bytes,
size_t num_bytes) {
- base::RandBytes(bytes, num_bytes);
+ crypto::RandBytes(bytes, num_bytes);
}
PlatformSharedBuffer* SimplePlatformSupport::CreateSharedBuffer(
@@ -27,5 +27,5 @@ PlatformSharedBuffer* SimplePlatformSupport::CreateSharedBufferFromHandle(
num_bytes, platform_handle.Pass());
}
-} // namespace embedder
+} // namespace edk
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698