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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 142523003: Renames gfx::FontList::Derive* family. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index ffc4865271f3b81de04f4466f635ea2360c346bd..65f6495f0b3f12fd4d7b9f051b7fa4f7844a8ecb 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -42,6 +42,7 @@
#include "ui/gfx/color_utils.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/text_elider.h"
+#include "ui/gfx/text_utils.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/mouse_constants.h"
@@ -771,7 +772,7 @@ void DownloadItemView::OnPaintBackground(gfx::Canvas* canvas) {
base::string16 status_string =
l10n_util::GetStringFUTF16(IDS_DOWNLOAD_STATUS_OPENING,
base::string16());
- int status_string_width = font_list_.GetStringWidth(status_string);
+ int status_string_width = gfx::GetStringWidth(status_string, font_list_);
// Then, elide the file name.
base::string16 filename_string =
gfx::ElideFilename(download()->GetFileNameToReportUser(), font_list_,

Powered by Google App Engine
This is Rietveld 408576698