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

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

Issue 2374763002: MD Downloads: simplify font preloading further (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/downloads.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 99737a3106ce468d514a808e74c6626afb93562d..34ccde3e0ac78db4f3791043c43849fddcca55b5 100644
--- a/chrome/browser/resources/md_downloads/crisper.js
+++ b/chrome/browser/resources/md_downloads/crisper.js
@@ -7026,9 +7026,5 @@ cr.define('downloads', function() {
// found in the LICENSE file.
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();
- }
-});
+ document.fonts.load('bold 12px Roboto');
+});
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/downloads.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698