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

Unified Diff: third_party/WebKit/Source/core/inspector/addStringToDigestor.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
« no previous file with comments | « third_party/WebKit/Source/core/inspector/addStringToDigestor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp
diff --git a/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp b/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..e6e748c394ab78c7ab501f3b2c363a8c86caeed9
--- /dev/null
+++ b/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp
@@ -0,0 +1,16 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
alph 2017/04/10 08:09:55 missing a line of copyright
Daniel Bratell 2017/04/10 08:28:29 Done.
+
+#include "core/inspector/addStringToDigestor.h"
+
+#include "platform/wtf/text/WTFString.h"
+#include "public/platform/WebCrypto.h"
+
+namespace blink {
+
+void addStringToDigestor(WebCryptoDigestor* digestor, const String& string) {
+ digestor->consume(
+ reinterpret_cast<const unsigned char*>(string.ascii().data()),
+ string.length());
+}
+}
« no previous file with comments | « third_party/WebKit/Source/core/inspector/addStringToDigestor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698