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

Unified Diff: chrome/browser/ui/webui/web_component_test_ui.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
Index: chrome/browser/ui/webui/web_component_test_ui.cc
diff --git a/chrome/browser/ui/webui/web_component_test_ui.cc b/chrome/browser/ui/webui/web_component_test_ui.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9c9c8f6611fb98d015c69a4aaba5f325b693a4b1
--- /dev/null
+++ b/chrome/browser/ui/webui/web_component_test_ui.cc
@@ -0,0 +1,21 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/webui/web_component_test_ui.h"
+
+#include "base/values.h"
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/url_constants.h"
+#include "content/public/browser/web_ui.h"
+#include "content/public/browser/web_ui_data_source.h"
+#include "grit/browser_resources.h"
+
+WebComponentTestUI::WebComponentTestUI(content::WebUI* web_ui)
+ : WebUIController(web_ui) {
+ content::WebUIDataSource* source =
+ content::WebUIDataSource::Create(chrome::kChromeUIWebComponentTestHost);
+ source->SetDefaultResource(IDR_WEB_COMPONENT_TEST_HTML);
+
+ content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source);
+}

Powered by Google App Engine
This is Rietveld 408576698