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

Unified Diff: components/webcrypto/algorithms/sha.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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: components/webcrypto/algorithms/sha.cc
diff --git a/components/webcrypto/algorithms/sha.cc b/components/webcrypto/algorithms/sha.cc
index 5baa0e2fdbe1ae6d87d6c0f800df91d843f6711b..cd380a040d8e878ea335c2b689aedbb8ab69f5be 100644
--- a/components/webcrypto/algorithms/sha.cc
+++ b/components/webcrypto/algorithms/sha.cc
@@ -125,7 +125,7 @@ class ShaImplementation : public AlgorithmImplementation {
} // namespace
std::unique_ptr<AlgorithmImplementation> CreateShaImplementation() {
- return base::WrapUnique(new ShaImplementation());
+ return base::MakeUnique<ShaImplementation>();
}
std::unique_ptr<blink::WebCryptoDigestor> CreateDigestorImplementation(
« no previous file with comments | « components/web_resource/web_resource_service.cc ('k') | components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698