| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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/md_feedback/md_feedback_ui.h" |
| 6 |
| 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/common/url_constants.h" |
| 9 #include "content/public/browser/web_ui_data_source.h" |
| 10 #include "grit/browser_resources.h" |
| 11 |
| 12 MdFeedbackUI::MdFeedbackUI(content::WebUI* web_ui) |
| 13 : content::WebUIController(web_ui) { |
| 14 // Set up the chrome://feedback data html_source. |
| 15 content::WebUIDataSource* html_source = |
| 16 content::WebUIDataSource::Create(chrome::kChromeUIFeedbackHost); |
| 17 html_source->SetDefaultResource(IDR_MD_FEEDBACK_FEEDBACK_HTML); |
| 18 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), html_source); |
| 19 } |
| 20 |
| 21 MdFeedbackUI::~MdFeedbackUI() {} |
| OLD | NEW |