Commit 952d067a authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

Add missing cstring include and namespace in WebString

WebString was using strlen without the proper includes. Apparently, this
broke some external code.

Change-Id: Ib01efa6bf3fe72e4f27e2f43641d0157dd457b9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2243133Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#777929}
parent 4ac6599e
......@@ -31,7 +31,9 @@
#ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_STRING_H_
#define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_STRING_H_
#include <cstring>
#include <string>
#include "base/memory/scoped_refptr.h"
#include "base/optional.h"
#include "base/strings/latin1_string_conversions.h"
......@@ -109,7 +111,7 @@ class WebString {
BLINK_PLATFORM_EXPORT bool Equals(const WebString&) const;
BLINK_PLATFORM_EXPORT bool Equals(const char* characters, size_t len) const;
bool Equals(const char* characters) const {
return Equals(characters, characters ? strlen(characters) : 0);
return Equals(characters, characters ? std::strlen(characters) : 0);
}
BLINK_PLATFORM_EXPORT size_t length() const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment