| Index: chrome/browser/chromeos/login/user_image.cc
|
| diff --git a/chrome/browser/chromeos/login/user_image.cc b/chrome/browser/chromeos/login/user_image.cc
|
| index fe77a4de7a1d20d20d6a61d8dc883c194f3cb1a1..f31bcd8aa94b1d9183c89ac53f9b62ba0d6b6676 100644
|
| --- a/chrome/browser/chromeos/login/user_image.cc
|
| +++ b/chrome/browser/chromeos/login/user_image.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/chromeos/login/user_image.h"
|
|
|
| +#include "base/logging.h"
|
| #include "ui/gfx/codec/png_codec.h"
|
|
|
| namespace chromeos {
|
| @@ -48,6 +49,7 @@ UserImage::UserImage(const gfx::ImageSkia& image)
|
| : image_(image),
|
| has_raw_image_(false),
|
| has_animated_image_(false) {
|
| + DCHECK(image.IsReadOnly());
|
| }
|
|
|
| UserImage::UserImage(const gfx::ImageSkia& image,
|
| @@ -55,6 +57,7 @@ UserImage::UserImage(const gfx::ImageSkia& image,
|
| : image_(image),
|
| has_raw_image_(false),
|
| has_animated_image_(false) {
|
| + DCHECK(image.IsReadOnly());
|
| if (IsAnimatedImage(raw_image)) {
|
| has_animated_image_ = true;
|
| animated_image_ = raw_image;
|
|
|