OLD | NEW |
---|---|
(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 | |
OLD | NEW |