Commit 5fd6d737 authored by Johannes Henkel's avatar Johannes Henkel Committed by Commit Bot

[DevTools] Binary::createFromBase64 -> fromBase64

To be consistent with the other creation methods.
See also:
https://chromium-review.googlesource.com/c/chromium/src/+/1281166/4/headless/lib/browser/protocol/protocol_string.h

Bug: chromium:891377
Change-Id: I4cf9a3ccd1dc91b428aa10e28ddbb49c56195622
Reviewed-on: https://chromium-review.googlesource.com/c/1284910Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Johannes Henkel <johannes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600152}
parent 6b5ed95e
......@@ -90,7 +90,7 @@ class Binary {
const uint8_t* data() const;
size_t size() const;
String toBase64() const;
static Binary createFromBase64(const String& base64, bool* success);
static Binary fromBase64(const String& base64, bool* success);
};
std::unique_ptr<protocol::Value> toProtocolValue(const base::Value* value,
......
......@@ -85,7 +85,7 @@ class Binary {
const uint8_t* data() const;
size_t size() const;
String toBase64() const;
static Binary createFromBase64(const String& base64, bool* success);
static Binary fromBase64(const String& base64, bool* success);
};
} // namespace protocol
} // namespace ui_devtools
......
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