Commit 0852e1b0 authored by Tibor Goldschwendt's avatar Tibor Goldschwendt Committed by Commit Bot

[vr] Remove DCHECK whether registered in VrAssetsComponentInstaller

If we enter VR without a Daydream headset paired the assets component
won't be registered. This is intended. However, we will always trigger
an on-demand update no matter if the component is registered or not.
Thus, remove DCHECK for testing whether component is registered when
on-demand updating the component. The component updater will just return
if we try to on-demand update an unregistered component.

Change-Id: If512f9c8aa7170e34864c40333ba6a727da01a58
Reviewed-on: https://chromium-review.googlesource.com/1182362Reviewed-by: default avatarJoshua Pawlicki <waffles@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584734}
parent 2ea522a5
......@@ -97,8 +97,6 @@ void VrAssetsComponentInstallerPolicy::UpdateComponent(
ondemand_update_pending_ = false;
const std::string crx_id = crx_file::id_util::GenerateIdFromHash(
kVrAssetsPublicKeySHA256, sizeof(kVrAssetsPublicKeySHA256));
// Make sure the component is registered.
DCHECK(base::ContainsValue(cus->GetComponentIDs(), crx_id));
cus->GetOnDemandUpdater().OnDemandUpdate(
crx_id, OnDemandUpdater::Priority::FOREGROUND,
base::BindOnce([](update_client::Error error) { return; }));
......
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