Chromium Code Reviews| Index: extensions/common/image_util.cc |
| diff --git a/extensions/common/image_util.cc b/extensions/common/image_util.cc |
| index efad19b68b168d30ac04fbf5f5bbe8143cc91714..6a8e13a67de42cc4e609dae22e00f72d4ede2e64 100644 |
| --- a/extensions/common/image_util.cc |
| +++ b/extensions/common/image_util.cc |
| @@ -13,6 +13,7 @@ |
| #include "base/strings/stringprintf.h" |
| #include "third_party/re2/src/re2/re2.h" |
| #include "third_party/skia/include/core/SkColor.h" |
| +#include "third_party/skia/include/utils/SkParse.h" |
| #include "ui/gfx/color_utils.h" |
| namespace extensions { |
| @@ -29,6 +30,11 @@ bool ParseCssColorString(const std::string& color_string, SkColor* result) { |
| NOTIMPLEMENTED(); |
| return false; |
| } |
| + if (SkParse::FindNamedColor(color_string.c_str(), color_string.size(), |
|
Devlin
2016/03/09 17:52:20
nifty!
|
| + result) != nullptr) { |
| + return true; |
| + } |
| + |
| return false; |
| } |