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

Side by Side Diff: components/dom_distiller/content/dom_distiller_viewer_source.cc

Issue 443343002: [dom_distiller] Fix viewer to use Open Sans webfont. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | components/dom_distiller/content/resources/dom_distiller_viewer.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/dom_distiller/content/dom_distiller_viewer_source.h" 5 #include "components/dom_distiller/content/dom_distiller_viewer_source.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 322 }
323 323
324 // TODO(nyquist): Start tracking requests using this method. 324 // TODO(nyquist): Start tracking requests using this method.
325 void DomDistillerViewerSource::WillServiceRequest( 325 void DomDistillerViewerSource::WillServiceRequest(
326 const net::URLRequest* request, 326 const net::URLRequest* request,
327 std::string* path) const { 327 std::string* path) const {
328 } 328 }
329 329
330 std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc() 330 std::string DomDistillerViewerSource::GetContentSecurityPolicyObjectSrc()
331 const { 331 const {
332 return "object-src 'none'; style-src 'self';"; 332 return "object-src 'none'; style-src 'self' http://fonts.googleapis.com;";
nyquist 2014/08/07 04:50:46 drive-by: I know the documentation seem to specify
Yaron 2014/08/07 05:03:36 I thought about it, but I honestly don't know how
cjhopman 2014/08/08 18:48:20 Using http allows a mitm to inject style into the
333 } 333 }
334 334
335 } // namespace dom_distiller 335 } // namespace dom_distiller
OLDNEW
« no previous file with comments | « no previous file | components/dom_distiller/content/resources/dom_distiller_viewer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698