Index: chrome/browser/ui/extensions/icon_with_badge_image_source.cc |
diff --git a/chrome/browser/ui/extensions/icon_with_badge_image_source.cc b/chrome/browser/ui/extensions/icon_with_badge_image_source.cc |
index 7045c4459dd4457db64dd811bd72871bf64e8571..08ab72abb5ac14717c46cc9dee745f6a7e9b30c8 100644 |
--- a/chrome/browser/ui/extensions/icon_with_badge_image_source.cc |
+++ b/chrome/browser/ui/extensions/icon_with_badge_image_source.cc |
@@ -82,13 +82,12 @@ SkPaint* GetBadgeTextPaintSingleton() { |
// that don't have Arial. |
ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
const gfx::Font& base_font = rb.GetFont(ResourceBundle::BaseFont); |
- typeface = sk_sp<SkTypeface>(SkTypeface::MakeFromName( |
- base_font.GetFontName().c_str(), SkFontStyle())); |
+ typeface = SkTypeface::MakeFromName(base_font.GetFontName().c_str(), |
+ SkFontStyle()); |
DCHECK(typeface); |
} |
- text_paint->setTypeface(typeface.get()); |
- // |text_paint| adds its own ref. Release the ref from CreateFontName. |
+ text_paint->setTypeface(std::move(typeface)); |
} |
return text_paint; |
} |