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

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

Issue 2800133003: Avoid duplicate functions: one AddStringToDigestor is enough (Closed)
Patch Set: Adding spacer lines Created 3 years, 5 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 c4068975bff05f68cdd253c04977897ceb3a7e2e..7de5ea5df2cd835008a7ecaba319f5963dc47628 100644
--- a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
+++ b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
@@ -43,6 +43,7 @@
#include "core/html/HTMLDocument.h"
#include "core/html/HTMLHeadElement.h"
#include "core/html/parser/HTMLDocumentParser.h"
+#include "core/inspector/AddStringToDigestor.h"
#include "core/inspector/DOMEditor.h"
#include "core/inspector/InspectorHistory.h"
#include "core/xml/parser/XMLDocumentParser.h"
@@ -427,13 +428,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* unused_nodes_map) {

Powered by Google App Engine
This is Rietveld 408576698