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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 1128543002: Blank UI for web component tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
« no previous file with comments | « chrome/browser/resources/web_component_test.html ('k') | chrome/browser/ui/webui/web_component_test_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fc43f0d61a8ed563fc228dff359009de716304e8..7328bd7c3016b8aef947f05b110895947e7f0546 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -51,6 +51,7 @@
#include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h"
#include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
#include "chrome/browser/ui/webui/version_ui.h"
+#include "chrome/browser/ui/webui/web_component_test_ui.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
@@ -356,6 +357,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
return &NewWebUI<UserActionsUI>;
if (url.host() == chrome::kChromeUIVersionHost)
return &NewWebUI<VersionUI>;
+ if (url.host() == chrome::kChromeUIWebComponentTestHost)
James Hawkins 2015/05/14 15:16:09 How can we mitigate this being accessible outside
michaelpg 2015/05/14 19:06:31 We could put it behind a flag, but I don't think t
+ return &NewWebUI<WebComponentTestUI>;
/****************************************************************************
* OS Specific #defines
« no previous file with comments | « chrome/browser/resources/web_component_test.html ('k') | chrome/browser/ui/webui/web_component_test_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698