summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authoryukishiino@chromium.org <yukishiino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 04:29:50 +0000
committeryukishiino@chromium.org <yukishiino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 04:29:50 +0000
commit52531bfad85eac5c0e6156e749ddafd7cb0d5e53 (patch)
treeb63adafd188797bb40b24870d109b698aa36f3d5 /printing
parent8648fa300a53cc1966fe1556030f8f765f2a9512 (diff)
downloadchromium_src-52531bfad85eac5c0e6156e749ddafd7cb0d5e53.zip
chromium_src-52531bfad85eac5c0e6156e749ddafd7cb0d5e53.tar.gz
chromium_src-52531bfad85eac5c0e6156e749ddafd7cb0d5e53.tar.bz2
Clean-up: Replaces Font with FontList.
This is a part of the plan to support gfx::FontList in UI components. https://docs.google.com/a/chromium.org/document/d/1D_25fp9B8b9aZJORfAjDIFq61NWvUquZ5xmKH-VcC4k/edit TEST=none BUG=265485 Review URL: https://chromiumcodereview.appspot.com/23498019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/DEPS1
-rw-r--r--printing/print_settings_initializer.cc9
2 files changed, 8 insertions, 2 deletions
diff --git a/printing/DEPS b/printing/DEPS
index 9c706cd..00c20e2 100644
--- a/printing/DEPS
+++ b/printing/DEPS
@@ -4,6 +4,7 @@ include_rules = [
"+third_party/icu/source/i18n/unicode",
"+third_party/skia",
"+ui/aura",
+ "+ui/base/resource",
"+ui/base/text",
"+ui/gfx",
"+win8/util",
diff --git a/printing/print_settings_initializer.cc b/printing/print_settings_initializer.cc
index 49a7bd8..37e5a64 100644
--- a/printing/print_settings_initializer.cc
+++ b/printing/print_settings_initializer.cc
@@ -16,7 +16,8 @@
#include "printing/print_job_constants.h"
#include "printing/print_settings.h"
#include "printing/units.h"
-#include "ui/gfx/font.h"
+#include "ui/base/resource/resource_bundle.h"
+#include "ui/gfx/font_list.h"
#include "ui/gfx/text_elider.h"
#include "url/gurl.h"
@@ -44,7 +45,11 @@ void PrintSettingsInitializer::InitHeaderFooterStrings(
print_settings->date = date;
print_settings->title = title;
- print_settings->url = gfx::ElideUrl(GURL(url), gfx::Font(), 0, std::string());
+ const gfx::FontList& default_fonts =
+ ui::ResourceBundle::GetSharedInstance().GetFontList(
+ ui::ResourceBundle::BaseFont);
+ print_settings->url = gfx::ElideUrl(GURL(url), default_fonts, 0,
+ std::string());
}
} // namespace printing