Commit 71d9865a authored by Ian Clelland's avatar Ian Clelland Committed by Commit Bot

Remove redundant check for WebVR runtime flag.

The code checks both the runtime flag and the origin trial status, when
the origin trial check implicitly checks the runtime flag first.
Removing this antipattern will allow us to eventually mark the
inappropriate checks as private, and reduce inadvertent bugs.

Bug: 799949
Change-Id: I8af29c46a0f5eefacb366e87d378c86b7d4ac71f
Reviewed-on: https://chromium-review.googlesource.com/891573Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532975}
parent 58013d32
......@@ -222,8 +222,7 @@ void ModulesInitializer::OnClearWindowObjectInMainWorld(
NavigatorGamepad::From(document);
NavigatorServiceWorker::From(document);
DOMWindowStorageController::From(document);
if (RuntimeEnabledFeatures::WebVREnabled() ||
OriginTrials::webVREnabled(document.GetExecutionContext()))
if (OriginTrials::webVREnabled(document.GetExecutionContext()))
NavigatorVR::From(document);
if (RuntimeEnabledFeatures::PresentationEnabled() &&
settings.GetPresentationReceiver()) {
......
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