| Index: third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| diff --git a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| index 862b4942250b02621b6e09a06f1e69daa8ed5be2..b2a2195cf35a07f862b94cc079b5c4821af565b5 100644
|
| --- a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| +++ b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| @@ -308,7 +308,7 @@
|
| return ok;
|
| }
|
|
|
| -bool getUint8Array(const Dictionary& raw, const char* propertyName, DOMUint8Array*& array, const ErrorContext& context, AlgorithmError* error)
|
| +bool getUint8Array(const Dictionary& raw, const char* propertyName, RefPtr<DOMUint8Array>& array, const ErrorContext& context, AlgorithmError* error)
|
| {
|
| if (!DictionaryHelper::get(raw, propertyName, array) || !array) {
|
| setTypeError(context.toString(propertyName, "Missing or not a Uint8Array"), error);
|
| @@ -320,7 +320,7 @@
|
| // Defined by the WebCrypto spec as:
|
| //
|
| // typedef Uint8Array BigInteger;
|
| -bool getBigInteger(const Dictionary& raw, const char* propertyName, DOMUint8Array*& array, const ErrorContext& context, AlgorithmError* error)
|
| +bool getBigInteger(const Dictionary& raw, const char* propertyName, RefPtr<DOMUint8Array>& array, const ErrorContext& context, AlgorithmError* error)
|
| {
|
| if (!getUint8Array(raw, propertyName, array, context, error))
|
| return false;
|
| @@ -563,7 +563,7 @@
|
| if (!getUint32(raw, "modulusLength", modulusLength, context, error))
|
| return false;
|
|
|
| - DOMUint8Array* publicExponent = nullptr;
|
| + RefPtr<DOMUint8Array> publicExponent;
|
| if (!getBigInteger(raw, "publicExponent", publicExponent, context, error))
|
| return false;
|
|
|
|
|