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

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..2c6825cdf00fb61faff73aafe54c17e591a6ed3e 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"
@@ -301,6 +302,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
***************************************************************************/
// We must compare hosts only since some of the Web UIs append extra stuff
// after the host name.
+ if (url.host() == chrome::kChromeUIWebComponentTestHost)
+ return &NewWebUI<WebComponentTestUI>;
stevenjb 2015/05/05 22:25:00 Either alphabetize this or put a comment above thi
michaelpg 2015/05/08 16:57:39 Done. (No reason for it to be first, I just forgot
// All platform builds of Chrome will need to have a cloud printing
// dialog as backup. It's just that on Chrome OS, it's the only
// print dialog.
« 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