# Disables references to fonts.googleapis.com --- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc +++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc @@ -298,7 +298,7 @@ bool DomDistillerViewerSource::ShouldSer std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc() const { - return "style-src 'self' https://fonts.googleapis.com;"; + return "style-src 'self';"; } std::string DomDistillerViewerSource::GetContentSecurityPolicyChildSrc() const { --- a/components/dom_distiller/core/html/preview.html +++ b/components/dom_distiller/core/html/preview.html @@ -11,7 +11,7 @@ found in the LICENSE file. <meta name="theme-color" id="theme-color"> <title>Title goes here and it could be kind of lengthy - Publisher name</title> <link href="../css/distilledpage.css" rel="stylesheet" type="text/css"> - <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> + <link href='chrome://resources/css/roboto.css' rel='stylesheet' type='text/css'> <style> .english :lang(th) {display: none} .english :lang(zh) {display: none} --- a/third_party/catapult/third_party/polymer/components/font-roboto/roboto.html +++ b/third_party/catapult/third_party/polymer/components/font-roboto/roboto.html @@ -7,4 +7,4 @@ Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> -<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic" crossorigin="anonymous"> +<link rel="stylesheet" type="text/css" href="chrome://resources/css/roboto.css" crossorigin="anonymous"> --- a/third_party/catapult/tracing/third_party/gl-matrix/jsdoc-template/static/default.css +++ b/third_party/catapult/tracing/third_party/gl-matrix/jsdoc-template/static/default.css @@ -168,7 +168,7 @@ ul.inheritsList /* Copied from styles.css generated by Github Pages */ -@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700); +@import url(chrome://resources/css/roboto.css); body { padding:50px; --- a/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css +++ b/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css @@ -12,8 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@import "https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=latin,cyrillic-ext,greek-ext,cyrillic,greek,vietnamese,latin-ext"; -@import "https://fonts.googleapis.com/css?family=Source+Code+Pro"; +@import "chrome://resources/css/roboto.css"; body, table, --- a/third_party/flatbuffers/src/docs/header.html +++ b/third_party/flatbuffers/src/docs/header.html @@ -14,7 +14,7 @@ $treeview $search $mathjax <link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" /> -<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,400italic,500,500italic,700,700italic|Roboto+Mono:400,700" rel="stylesheet"> +<link href="chrome://resources/css/roboto.css" rel="stylesheet"> $extrastylesheet </head> <body> --- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js +++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js @@ -120,7 +120,7 @@ function maybeSetWebFont() { if (distiller_on_ios) return; var e = document.createElement('link'); - e.href = 'https://fonts.googleapis.com/css?family=Roboto'; + e.href = 'chrome://resources/css/roboto.css'; e.rel = 'stylesheet'; e.type = 'text/css'; document.head.appendChild(e);