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

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

Issue 10857060: Fixes UserImage::CreateAndEncode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | no next file » | no next file with comments »
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 00a8ce0b53fbbfab9aca9f3fa43b48b82f396ef6..67f3d9fdc2c321091dd4e911dbc3a1ae3cd00239 100644
--- a/chrome/browser/chromeos/login/user_image.cc
+++ b/chrome/browser/chromeos/login/user_image.cc
@@ -24,7 +24,7 @@ bool IsAnimatedImage(const UserImage::RawImage& data) {
bool EncodeBGRAImageSkia(const gfx::ImageSkia& image,
bool discard_transparency,
std::vector<unsigned char>* output) {
- if (image.empty() || image.bitmap())
+ if (image.empty() || !image.bitmap())
return false;
return gfx::PNGCodec::EncodeBGRASkBitmap(*image.bitmap(),
discard_transparency, output);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698