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

Unified Diff: third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp b/third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp
index d110d3b60d08596f7bd85e49c22586ae2fb7ede6..12a70f9cb146e24741e8302783d90522afc8f9e8 100644
--- a/third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp
@@ -73,7 +73,7 @@ WebCryptoKeyAlgorithm WebCryptoKeyAlgorithm::createAes(
if (keyLengthBits != 128 && keyLengthBits != 192 && keyLengthBits != 256)
return WebCryptoKeyAlgorithm();
return WebCryptoKeyAlgorithm(
- id, wrapUnique(new WebCryptoAesKeyAlgorithmParams(keyLengthBits)));
+ id, makeUnique<WebCryptoAesKeyAlgorithmParams>(keyLengthBits));
}
WebCryptoKeyAlgorithm WebCryptoKeyAlgorithm::createHmac(
@@ -105,7 +105,7 @@ WebCryptoKeyAlgorithm WebCryptoKeyAlgorithm::createEc(
WebCryptoAlgorithmId id,
WebCryptoNamedCurve namedCurve) {
return WebCryptoKeyAlgorithm(
- id, wrapUnique(new WebCryptoEcKeyAlgorithmParams(namedCurve)));
+ id, makeUnique<WebCryptoEcKeyAlgorithmParams>(namedCurve));
}
WebCryptoKeyAlgorithm WebCryptoKeyAlgorithm::createWithoutParams(
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebCredential.cpp ('k') | third_party/WebKit/Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698