| Index: chrome/browser/dom_ui/dom_ui_theme_source.cc
|
| ===================================================================
|
| --- chrome/browser/dom_ui/dom_ui_theme_source.cc (revision 21189)
|
| +++ chrome/browser/dom_ui/dom_ui_theme_source.cc (working copy)
|
| @@ -148,7 +148,11 @@
|
| DCHECK(tp);
|
|
|
| SkBitmap* image = tp->GetBitmapNamed(resource_id);
|
| - DCHECK(image);
|
| + if (!image || image->empty()) {
|
| + SendResponse(request_id, NULL);
|
| + return;
|
| + }
|
| +
|
| std::vector<unsigned char> png_bytes;
|
| PNGEncoder::EncodeBGRASkBitmap(*image, false, &png_bytes);
|
|
|
|
|