Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 2385123005: Enable WebVR origin trial experiments. (Closed)
Patch Set: Update ConditionalFeaturesForModules.cpp Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698