Commit 7056253c authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Remove unnecessary conversion to/from WebString

Change-Id: Ibed70c17d5ba2bb9a9073e5b6174896744064a80
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1619689
Commit-Queue: Daniel Bratell <bratell@opera.com>
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Reviewed-by: default avatarDaniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#661325}
parent 2666ab40
...@@ -101,12 +101,11 @@ namespace blink { ...@@ -101,12 +101,11 @@ namespace blink {
namespace { namespace {
// Generate the default base tag declaration. // Generate the default base tag declaration.
String GenerateBaseTagDeclaration(const WebString& base_target) { String GenerateBaseTagDeclaration(const String& base_target) {
// TODO(yosin) We should call |FrameSerializer::baseTagDeclarationOf()|. // TODO(yosin) We should call |FrameSerializer::baseTagDeclarationOf()|.
if (base_target.IsEmpty()) if (base_target.IsEmpty())
return String("<base href=\".\">"); return String("<base href=\".\">");
String base_string = "<base href=\".\" target=\"" + String base_string = "<base href=\".\" target=\"" + base_target + "\">";
static_cast<const String&>(base_target) + "\">";
return base_string; return base_string;
} }
......
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