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

Side by Side Diff: chrome/browser/ui/webui/md_feedback/md_feedback_ui.cc

Issue 2021543002: [MD Feedback] Add basic chrome://feedback WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/md_feedback/md_feedback_ui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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() {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/md_feedback/md_feedback_ui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698