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

Unified Diff: Source/core/page/Crypto.cpp

Issue 14178012: Remove the USE(OS_RANDOMNESS) guard. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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 | « no previous file | Source/core/platform/UUID.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Crypto.cpp
diff --git a/Source/core/page/Crypto.cpp b/Source/core/page/Crypto.cpp
index a6aca2fd4920898b204a52c40f5f7e9acb80f044..2bc7fc94b1517c889ba5e7a93f631085d774460f 100644
--- a/Source/core/page/Crypto.cpp
+++ b/Source/core/page/Crypto.cpp
@@ -59,7 +59,6 @@ Crypto::Crypto()
void Crypto::getRandomValues(ArrayBufferView* array, ExceptionCode& ec)
{
-#if USE(OS_RANDOMNESS)
if (!array || !isIntegerArray(array)) {
ec = TYPE_MISMATCH_ERR;
return;
@@ -69,10 +68,6 @@ void Crypto::getRandomValues(ArrayBufferView* array, ExceptionCode& ec)
return;
}
cryptographicallyRandomValues(array->baseAddress(), array->byteLength());
-#else
- ASSERT_UNUSED(array, array);
- ec = NOT_SUPPORTED_ERR;
-#endif
}
}
« no previous file with comments | « no previous file | Source/core/platform/UUID.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698