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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/addStringToDigestor.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // 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.
3
4 #include "core/inspector/addStringToDigestor.h"
5
6 #include "platform/wtf/text/WTFString.h"
7 #include "public/platform/WebCrypto.h"
8
9 namespace blink {
10
11 void addStringToDigestor(WebCryptoDigestor* digestor, const String& string) {
12 digestor->consume(
13 reinterpret_cast<const unsigned char*>(string.ascii().data()),
14 string.length());
15 }
16 }
OLDNEW
« 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