| Index: ui/gfx/paint_vector_icon.cc
|
| diff --git a/ui/gfx/paint_vector_icon.cc b/ui/gfx/paint_vector_icon.cc
|
| index 70daac299d814079c90186065d3ec7a0a60060cb..1ac78e279589ec2a5125fb458621e99e339fa827 100644
|
| --- a/ui/gfx/paint_vector_icon.cc
|
| +++ b/ui/gfx/paint_vector_icon.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/i18n/rtl.h"
|
| #include "base/lazy_instance.h"
|
| #include "base/macros.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_split.h"
|
| #include "third_party/skia/include/core/SkPaint.h"
|
| @@ -596,8 +597,8 @@ ImageSkia CreateVectorIconWithBadge(const VectorIcon& icon,
|
| ImageSkia CreateVectorIconFromSource(const std::string& source,
|
| int dip_size,
|
| SkColor color) {
|
| - return ImageSkia(new VectorIconSourceLegacy(source, dip_size, color),
|
| - gfx::Size(dip_size, dip_size));
|
| + return CanvasImageSource::MakeImageSkia<VectorIconSourceLegacy>(
|
| + source, dip_size, color);
|
| }
|
|
|
| } // namespace gfx
|
|
|