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

Unified Diff: chrome/browser/resources/md_downloads/crisper.js

Issue 2361973002: MD Downloads: preload bold Roboto in a better way (Closed)
Patch Set: !chromeos Created 4 years, 3 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
Index: chrome/browser/resources/md_downloads/crisper.js
diff --git a/chrome/browser/resources/md_downloads/crisper.js b/chrome/browser/resources/md_downloads/crisper.js
index 6cb4e37f57b505136c54c6747f533e8dab113823..4224da8effa958b556ddac2aab4fc483aee480ab 100644
--- a/chrome/browser/resources/md_downloads/crisper.js
+++ b/chrome/browser/resources/md_downloads/crisper.js
@@ -6996,4 +6996,11 @@ cr.define('downloads', function() {
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-window.addEventListener('load', downloads.Manager.onLoad);
+window.addEventListener('load', function() {
+ downloads.Manager.onLoad();
+ if (!cr.isChromeOS) {
+ new FontFace('Roboto', "local('Roboto Bold'), local('Roboto-Bold'), " + "url(chrome://resources/roboto/roboto-bold.woff2) format('woff2')", {
+ weight: 'bold'
+ }).load();
+ }
+});
« no previous file with comments | « chrome/browser/resources/md_downloads/compiled_resources2.gyp ('k') | chrome/browser/resources/md_downloads/downloads.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698