Commit 4a98b6ec authored by Becca Hughes's avatar Becca Hughes Committed by Chromium LUCI CQ

Host Google Sans on chrome://kaleidoscope

This is so it can be used on the NTP.

Change-Id: I6c3f2ee45a5b8c570661618191c81f1fb24a9e6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2441260Reviewed-by: default avatarTommy Steimel <steimel@chromium.org>
Commit-Queue: Becca Hughes <beccahughes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834322}
parent 373dc763
...@@ -290,6 +290,19 @@ content::WebUIDataSource* KaleidoscopeUI::CreateWebUIDataSource() { ...@@ -290,6 +290,19 @@ content::WebUIDataSource* KaleidoscopeUI::CreateWebUIDataSource() {
html_source->AddResourcePath("content.js", IDR_KALEIDOSCOPE_CONTENT_JS); html_source->AddResourcePath("content.js", IDR_KALEIDOSCOPE_CONTENT_JS);
html_source->AddResourcePath("shared.css", IDR_KALEIDOSCOPE_SHARED_CSS); html_source->AddResourcePath("shared.css", IDR_KALEIDOSCOPE_SHARED_CSS);
// Google Sans.
html_source->AddResourcePath("resources/fonts/fonts.css",
IDR_GOOGLE_SANS_CSS);
html_source->AddResourcePath("resources/fonts/GoogleSans-Bold.woff2",
IDR_GOOGLE_SANS_BOLD);
html_source->AddResourcePath("resources/fonts/GoogleSans-Medium.woff2",
IDR_GOOGLE_SANS_MEDIUM);
html_source->AddResourcePath("resources/fonts/GoogleSans-Regular.woff2",
IDR_GOOGLE_SANS_REGULAR);
html_source->AddResourcePath(
"resources/fonts/GoogleSansDisplay-Regular.woff2",
IDR_GOOGLE_SANS_DISPLAY_REGULAR);
html_source->SetDefaultResource(IDR_KALEIDOSCOPE_HTML); html_source->SetDefaultResource(IDR_KALEIDOSCOPE_HTML);
#endif // BUILDFLAG(ENABLE_KALEIDOSCOPE) #endif // BUILDFLAG(ENABLE_KALEIDOSCOPE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment