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

Unified Diff: printing/pdf_metafile_skia.cc

Issue 105433003: Remove references to SkAdvancedTypefaceMetrics::kNotEmbeddable_Font (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/pdf_metafile_skia.cc
diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc
index 57e635ab5bf56caa692f3519c212e4888894bffb..b386cf9198933a86c6f95c734abbe5993b922684 100644
--- a/printing/pdf_metafile_skia.cc
+++ b/printing/pdf_metafile_skia.cc
@@ -96,15 +96,15 @@ bool PdfMetafileSkia::FinishDocument() {
data_->current_page_.clear();
- int font_counts[SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1];
+ int font_counts[SkAdvancedTypefaceMetrics::kOther_Font + 2];
data_->pdf_doc_.getCountOfFontTypes(font_counts);
for (int type = 0;
- type <= SkAdvancedTypefaceMetrics::kNotEmbeddable_Font;
+ type <= SkAdvancedTypefaceMetrics::kOther_Font + 1;
type++) {
for (int count = 0; count < font_counts[type]; count++) {
UMA_HISTOGRAM_ENUMERATION(
"PrintPreview.FontType", type,
- SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1);
+ SkAdvancedTypefaceMetrics::kOther_Font + 2);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698