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

Unified Diff: third_party/mojo/src/mojo/edk/system/unique_identifier.cc

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 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: third_party/mojo/src/mojo/edk/system/unique_identifier.cc
diff --git a/third_party/mojo/src/mojo/edk/system/unique_identifier.cc b/third_party/mojo/src/mojo/edk/system/unique_identifier.cc
index e851e2b0f0d5e36c13680e113a4c4735291ed61e..11e482b64b52728ea0aaf3641bef92f3d08f2398 100644
--- a/third_party/mojo/src/mojo/edk/system/unique_identifier.cc
+++ b/third_party/mojo/src/mojo/edk/system/unique_identifier.cc
@@ -7,7 +7,7 @@
#include <ostream>
#include "base/strings/string_number_conversions.h"
-#include "crypto/random.h"
+#include "mojo/edk/embedder/platform_support.h"
namespace mojo {
namespace system {
@@ -19,9 +19,10 @@ std::ostream& operator<<(std::ostream& out,
}
// static
-UniqueIdentifier UniqueIdentifier::Generate() {
+UniqueIdentifier UniqueIdentifier::Generate(
+ embedder::PlatformSupport* platform_support) {
UniqueIdentifier rv;
- crypto::RandBytes(rv.data_, sizeof(rv.data_));
+ platform_support->GetCryptoRandomBytes(rv.data_, sizeof(rv.data_));
return rv;
}

Powered by Google App Engine
This is Rietveld 408576698