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

Side by Side Diff: third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp

Issue 2800133003: Avoid duplicate functions: one AddStringToDigestor is enough (Closed)
Patch Set: Avoid duplicate functions/code: one AddStringToDigestor is enough. 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 unified diff | Download patch
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
3 // found in the LICENSE file.
4
5 #include "core/inspector/AddStringToDigestor.h"
6
7 #include "platform/wtf/text/WTFString.h"
8 #include "public/platform/WebCrypto.h"
9
10 namespace blink {
11
12 void AddStringToDigestor(WebCryptoDigestor* digestor, const String& string) {
13 digestor->Consume(
14 reinterpret_cast<const unsigned char*>(string.Ascii().data()),
alph 2017/07/08 01:16:24 I bet string.Ascii().length() is not equal to stri
Daniel Bratell 2017/07/10 14:47:18 So thanks to your review I realized that the two f
alph 2017/07/10 21:26:06 I believe it's not really important which encoding
15 string.length());
16 }
17 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698