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 e730ac088b2b7366f013c1bc0658694868ba7f58..06f8f6999a7f46f652e1dfbeb155b66619f158a4 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" |
@@ -157,7 +158,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); |
} |
} |