Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
index 491c8d48e597060c1111fe812ba4e03cb775caec..b62418eb31d9172e73a04970397953cb19e5ba10 100644 |
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
@@ -109,7 +109,7 @@ |
#include "chrome/browser/ui/webui/offline/offline_internals_ui.h" |
#include "chrome/browser/ui/webui/popular_sites_internals_ui.h" |
#include "chrome/browser/ui/webui/snippets_internals_ui.h" |
-#if defined(ENABLE_VR_SHELL) |
+#if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) |
#include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h" |
#endif |
#else |
@@ -531,10 +531,10 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
if (url.host() == chrome::kChromeUISnippetsInternalsHost && |
!profile->IsOffTheRecord()) |
return &NewWebUI<SnippetsInternalsUI>; |
-#if defined(ENABLE_VR_SHELL) |
+#if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) |
if (url.host() == chrome::kChromeUIVrShellUIHost) |
return &NewWebUI<VrShellUIUI>; |
-#endif // defined(ENABLE_VR_SHELL) |
+#endif |
#else |
if (url.SchemeIs(content::kChromeDevToolsScheme)) |
return &NewWebUI<DevToolsUI>; |