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

Unified Diff: third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/WebKit/Source/core/inspector/DOMPatchSupport.cpp
diff --git a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
index 02f656a8674f215fafc096cd1c538a6c6145adf3..3115d974cb69546c76abe74f98eb3e613c113651 100644
--- a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
+++ b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
@@ -53,6 +53,7 @@
#include "wtf/RefPtr.h"
#include "wtf/text/Base64.h"
#include "wtf/text/CString.h"
+#include <memory>
namespace blink {
@@ -399,7 +400,7 @@ DOMPatchSupport::Digest* DOMPatchSupport::createDigest(Node* node, UnusedNodesMa
{
Digest* digest = new Digest(node);
- OwnPtr<WebCryptoDigestor> digestor = createDigestor(HashAlgorithmSha1);
+ std::unique_ptr<WebCryptoDigestor> digestor = createDigestor(HashAlgorithmSha1);
DigestValue digestResult;
Node::NodeType nodeType = node->getNodeType();
@@ -419,7 +420,7 @@ DOMPatchSupport::Digest* DOMPatchSupport::createDigest(Node* node, UnusedNodesMa
AttributeCollection attributes = element.attributesWithoutUpdate();
if (!attributes.isEmpty()) {
- OwnPtr<WebCryptoDigestor> attrsDigestor = createDigestor(HashAlgorithmSha1);
+ std::unique_ptr<WebCryptoDigestor> attrsDigestor = createDigestor(HashAlgorithmSha1);
for (auto& attribute : attributes) {
addStringToDigestor(attrsDigestor.get(), attribute.name().toString());
addStringToDigestor(attrsDigestor.get(), attribute.value().getString());

Powered by Google App Engine
This is Rietveld 408576698