diff options
author | Jordan Bayles <jophba@chromium.org> | 2021-06-07 08:18:12 -0700 |
---|---|---|
committer | Openscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2021-06-07 17:40:40 +0000 |
commit | 8566e3b6ac34400270869708cce673bcc12686a1 (patch) | |
tree | 4ed0c2fd50abeee42c3bf620b5cafbf3c7b88bb8 /cast | |
parent | accf7fd700bff19266b17eb271e3c805a3230352 (diff) | |
download | openscreen-8566e3b6ac34400270869708cce673bcc12686a1.tar.gz |
[Hotfix] readd deprecated declaration
This patch fixes the Chrome build by readding a deprecated declaration.
TBR=rwkeane@google.com
Change-Id: Ibb506764ac47dde09e56b1cb1ddf7f31f4cd2dd6
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2944213
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Reviewed-by: Ryan Keane <rwkeane@google.com>
Commit-Queue: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast')
-rw-r--r-- | cast/streaming/offer_messages.cc | 5 | ||||
-rw-r--r-- | cast/streaming/offer_messages.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/cast/streaming/offer_messages.cc b/cast/streaming/offer_messages.cc index f438d9be..ad88e82e 100644 --- a/cast/streaming/offer_messages.cc +++ b/cast/streaming/offer_messages.cc @@ -315,6 +315,11 @@ bool VideoStream::IsValid() const { } // static +Error Offer::Parse(const Json::Value& root, Offer* out) { + return TryParse(root, out); +} + +// static Error Offer::TryParse(const Json::Value& root, Offer* out) { if (!root.isObject()) { return Error(Error::Code::kJsonParseError, "null offer"); diff --git a/cast/streaming/offer_messages.h b/cast/streaming/offer_messages.h index 80458954..30704112 100644 --- a/cast/streaming/offer_messages.h +++ b/cast/streaming/offer_messages.h @@ -100,6 +100,8 @@ struct VideoStream { enum class CastMode : uint8_t { kMirroring, kRemoting }; struct Offer { + // TODO(jophba): remove deprecated declaration in a separate patch. + static Error Parse(const Json::Value& root, Offer* out); static Error TryParse(const Json::Value& root, Offer* out); Json::Value ToJson() const; bool IsValid() const; |