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

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

Issue 2800133003: Avoid duplicate functions: one AddStringToDigestor is enough (Closed)
Patch Set: Created 3 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
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 dd353c3deb68a5f2c89ffe155db9cdadb4c88431..5b7062016546d22d9a9d6483a680d311ea5a0a61 100644
--- a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
+++ b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
@@ -30,6 +30,7 @@
#include "core/inspector/DOMPatchSupport.h"
+#include <memory>
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/Attribute.h"
#include "core/dom/ContextFeatures.h"
@@ -44,6 +45,7 @@
#include "core/html/parser/HTMLDocumentParser.h"
#include "core/inspector/DOMEditor.h"
#include "core/inspector/InspectorHistory.h"
+#include "core/inspector/addStringToDigestor.h"
#include "core/xml/parser/XMLDocumentParser.h"
#include "platform/Crypto.h"
#include "public/platform/Platform.h"
@@ -52,7 +54,6 @@
#include "wtf/RefPtr.h"
#include "wtf/text/Base64.h"
#include "wtf/text/CString.h"
-#include <memory>
namespace blink {
@@ -437,13 +438,6 @@ bool DOMPatchSupport::innerPatchChildren(
return true;
}
-static void addStringToDigestor(WebCryptoDigestor* digestor,
- const String& string) {
- digestor->consume(
- reinterpret_cast<const unsigned char*>(string.utf8().data()),
- string.length());
-}
-
DOMPatchSupport::Digest* DOMPatchSupport::createDigest(
Node* node,
UnusedNodesMap* unusedNodesMap) {

Powered by Google App Engine
This is Rietveld 408576698