| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/webui/web_component_test_ui.h" |
| 6 |
| 7 #include "base/values.h" |
| 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/common/url_constants.h" |
| 10 #include "content/public/browser/web_ui.h" |
| 11 #include "content/public/browser/web_ui_data_source.h" |
| 12 #include "grit/browser_resources.h" |
| 13 |
| 14 WebComponentTestUI::WebComponentTestUI(content::WebUI* web_ui) |
| 15 : WebUIController(web_ui) { |
| 16 content::WebUIDataSource* source = |
| 17 content::WebUIDataSource::Create(chrome::kChromeUIWebComponentTestHost); |
| 18 source->SetDefaultResource(IDR_WEB_COMPONENT_TEST_HTML); |
| 19 |
| 20 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source); |
| 21 } |
| OLD | NEW |