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

Unified Diff: chrome/browser/search/most_visited_iframe_source.cc

Issue 473583002: [Local NTP] Implementing Material Design styling (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search/most_visited_iframe_source.cc
diff --git a/chrome/browser/search/most_visited_iframe_source.cc b/chrome/browser/search/most_visited_iframe_source.cc
index c76c3b6af5a49fa8c5125dab0e890949f529a12b..43dce571f0ca67601d0decb0f1158d3091c053ca 100644
--- a/chrome/browser/search/most_visited_iframe_source.cc
+++ b/chrome/browser/search/most_visited_iframe_source.cc
@@ -24,6 +24,9 @@ const char kThumbnailJSPath[] = "/thumbnail.js";
const char kUtilJSPath[] = "/util.js";
const char kCommonCSSPath[] = "/common.css";
+const char kRobotoWoffPath[] = "/roboto.woff";
+const char kRobotoWoff2Path[] = "/roboto.woff2";
+
} // namespace
MostVisitedIframeSource::MostVisitedIframeSource() {
@@ -65,6 +68,10 @@ void MostVisitedIframeSource::StartDataRequest(
render_frame_id, callback);
} else if (path == kCommonCSSPath) {
SendResource(IDR_MOST_VISITED_IFRAME_CSS, callback);
+ } else if (path == kRobotoWoffPath) {
+ SendResource(IDR_ROBOTO_WOFF, callback);
+ } else if (path == kRobotoWoff2Path) {
+ SendResource(IDR_ROBOTO_WOFF2, callback);
} else {
callback.Run(NULL);
}
@@ -74,5 +81,6 @@ bool MostVisitedIframeSource::ServesPath(const std::string& path) const {
return path == kTitleHTMLPath || path == kTitleCSSPath ||
path == kTitleJSPath || path == kThumbnailHTMLPath ||
path == kThumbnailCSSPath || path == kThumbnailJSPath ||
- path == kUtilJSPath || path == kCommonCSSPath;
+ path == kUtilJSPath || path == kCommonCSSPath ||
+ path == kRobotoWoffPath || path == kRobotoWoff2Path;
}
« chrome/browser/search/local_ntp_source.cc ('K') | « chrome/browser/search/local_ntp_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698