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

Unified Diff: chrome/browser/ui/webui/options/chromeos/wallpaper_source.cc

Issue 10824359: Remove ImageSkia::empty and ImageSkia::extractSubset (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
Index: chrome/browser/ui/webui/options/chromeos/wallpaper_source.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/wallpaper_source.cc b/chrome/browser/ui/webui/options/chromeos/wallpaper_source.cc
index aa0cdf2ec8757773dfcb45459b640ee7433f18d1..fd8250b3356c76476558512696d25d1f0a50a80f 100644
--- a/chrome/browser/ui/webui/options/chromeos/wallpaper_source.cc
+++ b/chrome/browser/ui/webui/options/chromeos/wallpaper_source.cc
@@ -133,7 +133,7 @@ void WallpaperImageSource::GetCurrentUserWallpaper(int request_id) {
SkBitmap wallpaper;
gfx::ImageSkia wallpaper_skia = ash::Shell::GetInstance()->
desktop_background_controller()->GetCurrentWallpaperImage();
- if (!wallpaper_skia.empty())
+ if (!wallpaper_skia.isNull())
wallpaper = *wallpaper_skia.bitmap();
SkBitmap copy;
if (wallpaper.deepCopyTo(&copy, wallpaper.config()))

Powered by Google App Engine
This is Rietveld 408576698