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 b5220b360faee6e2cec3b568d026aa081bdabeb9..b1416fa977a0ab15223020f1a3130b88115e549a 100644 |
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
@@ -107,6 +107,9 @@ |
#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) |
+#include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h" |
+#endif |
#else |
#include "chrome/browser/signin/easy_unlock_service.h" |
#include "chrome/browser/signin/easy_unlock_service_factory.h" |
@@ -521,6 +524,10 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
if (url.host() == chrome::kChromeUISnippetsInternalsHost && |
!profile->IsOffTheRecord()) |
return &NewWebUI<SnippetsInternalsUI>; |
+#if defined(ENABLE_VR_SHELL) |
+ if (url.host() == chrome::kChromeUIVrShellUIHost) |
xiyuan
2016/09/15 22:58:47
Just checking, so this would be available only for
bshe
2016/09/16 18:27:53
Correct. We are only targeting Android right now.
|
+ return &NewWebUI<VrShellUIUI>; |
+#endif // defined(ENABLE_VR_SHELL) |
#else |
if (url.SchemeIs(content::kChromeDevToolsScheme)) |
return &NewWebUI<DevToolsUI>; |