Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2674)

Unified Diff: chrome/browser/chromeos/login/user_image.cc

Issue 10820049: Load 2x resources on demand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For preview Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/user_image_loader.cc » ('j') | ui/gfx/image/image_skia.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/user_image_loader.cc » ('j') | ui/gfx/image/image_skia.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698