[dom_distiller] Fix viewer to use Open Sans webfont.

Previously we were specifying to use Open Sans but the font isn't loaded on Android.
Use the webfont hosted on Google and update CSP to allow it.

Review URL: https://codereview.chromium.org/443343002

Cr-Commit-Position: refs/heads/master@{#288497}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288497 0039d316-1c4b-4281-b951-d872f2087c98
parent 904eb665
...@@ -329,7 +329,7 @@ void DomDistillerViewerSource::WillServiceRequest( ...@@ -329,7 +329,7 @@ void DomDistillerViewerSource::WillServiceRequest(
std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc() std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc()
const { const {
return "object-src 'none'; style-src 'self';"; return "object-src 'none'; style-src 'self' https://fonts.googleapis.com;";
} }
} // namespace dom_distiller } // namespace dom_distiller
...@@ -10,6 +10,7 @@ found in the LICENSE file. ...@@ -10,6 +10,7 @@ found in the LICENSE file.
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>$1</title> <title>$1</title>
<link rel="stylesheet" href="/$2"> <link rel="stylesheet" href="/$2">
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script src="/$3"></script> <script src="/$3"></script>
</head> </head>
<body class="$4"> <body class="$4">
......
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