Commit 15cbf82d authored by Xiaohan Wang's avatar Xiaohan Wang Committed by Commit Bot

Fix CreateOriginId() in cast_content_browser_client.cc

This function is outdated after MediaDrmStorageImpl change [1]. It's not
breaking bots because USE_CHROMECAST_CDMS is true by default on Android,
which could be a bug on its own.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/1416398

Bug: 917527
Change-Id: I7effd079c9a1ff33ee0cc91a2130a1361cb99c3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1592229Reviewed-by: default avatarJohn Rummell <jrummell@chromium.org>
Reviewed-by: default avatarYuchen Liu <yucliu@chromium.org>
Commit-Queue: Xiaohan Wang <xhwang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#656252}
parent 60e9e18c
......@@ -174,11 +174,10 @@ static void CreateMediaService(CastContentBrowserClient* browser_client,
#endif // BUILDFLAG(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
#if defined(OS_ANDROID) && !BUILDFLAG(USE_CHROMECAST_CDMS)
void CreateOriginId(
base::OnceCallback<void(const base::UnguessableToken&)> callback) {
void CreateOriginId(cdm::MediaDrmStorageImpl::OriginIdObtainedCB callback) {
// TODO(crbug.com/917527): Update this to actually get a pre-provisioned
// origin ID.
std::move(callback).Run(base::UnguessableToken::Create());
std::move(callback).Run(true, base::UnguessableToken::Create());
}
void AllowEmptyOriginIdCB(base::OnceCallback<void(bool)> callback) {
......
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