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

Unified Diff: chrome/browser/ui/webui/physical_web/physical_web_ui.cc

Issue 2717363003: Add Physical Web WebUI Default Url Icon (Closed)
Patch Set: rebase Created 3 years, 9 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 | « no previous file | components/physical_web/resources/ic_link_grey600_36dp.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/physical_web/physical_web_ui.cc
diff --git a/chrome/browser/ui/webui/physical_web/physical_web_ui.cc b/chrome/browser/ui/webui/physical_web/physical_web_ui.cc
index c7de25f276a115d8e99dd74a6eda4686c4829155..a502e19e628638d6f90bb8adfe0fde928e3341c7 100644
--- a/chrome/browser/ui/webui/physical_web/physical_web_ui.cc
+++ b/chrome/browser/ui/webui/physical_web/physical_web_ui.cc
@@ -20,8 +20,8 @@
namespace {
content::WebUIDataSource* CreatePhysicalWebHTMLSource() {
- content::WebUIDataSource* source = content::WebUIDataSource::Create(
- chrome::kChromeUIPhysicalWebHost);
+ content::WebUIDataSource* source =
+ content::WebUIDataSource::Create(chrome::kChromeUIPhysicalWebHost);
source->AddLocalizedString(physical_web_ui::kTitle,
IDS_PHYSICAL_WEB_UI_TITLE);
@@ -33,6 +33,8 @@ content::WebUIDataSource* CreatePhysicalWebHTMLSource() {
source->AddResourcePath(physical_web_ui::kPhysicalWebCSS,
IDR_PHYSICAL_WEB_UI_CSS);
source->SetDefaultResource(IDR_PHYSICAL_WEB_UI_HTML);
+ source->AddResourcePath(physical_web_ui::kPhysicalWebLinkIcon,
+ IDR_PHYSICAL_WEB_UI_LINK_ICON);
return source;
}
@@ -80,8 +82,7 @@ class PhysicalWebMessageHandler : public content::WebUIMessageHandler {
} // namespace
-PhysicalWebUI::PhysicalWebUI(content::WebUI* web_ui)
- : WebUIController(web_ui) {
+PhysicalWebUI::PhysicalWebUI(content::WebUI* web_ui) : WebUIController(web_ui) {
content::WebUIDataSource::Add(Profile::FromWebUI(web_ui),
CreatePhysicalWebHTMLSource());
web_ui->AddMessageHandler(base::MakeUnique<PhysicalWebMessageHandler>());
« no previous file with comments | « no previous file | components/physical_web/resources/ic_link_grey600_36dp.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698