Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
index 0458a9a1af3b01654613c797a7ea4453ea2eae10..db1de678cac7e8bda77e43567030f9960c02da88 100644 |
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
@@ -49,6 +49,7 @@ |
#include "core/loader/FrameLoadRequest.h" |
#include "core/loader/FrameLoader.h" |
#include "core/loader/HistoryItem.h" |
+#include "core/origin_trials/OriginTrials.h" |
#include "core/page/Page.h" |
#include "core/page/WindowFeatures.h" |
#include "modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h" |
@@ -155,7 +156,8 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() { |
NavigatorGamepad::from(*document); |
NavigatorServiceWorker::from(*document); |
DOMWindowStorageController::from(*document); |
- if (RuntimeEnabledFeatures::webVREnabled()) |
+ if (RuntimeEnabledFeatures::webVREnabled() || |
+ OriginTrials::webVREnabled(document->getExecutionContext())) |
NavigatorVR::from(*document); |
} |
} |