summaryrefslogtreecommitdiffstats
path: root/ash/desktop_background
diff options
context:
space:
mode:
Diffstat (limited to 'ash/desktop_background')
-rw-r--r--ash/desktop_background/desktop_background_resources.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ash/desktop_background/desktop_background_resources.cc b/ash/desktop_background/desktop_background_resources.cc
index 484bbbc..4f2f828 100644
--- a/ash/desktop_background/desktop_background_resources.cc
+++ b/ash/desktop_background/desktop_background_resources.cc
@@ -470,6 +470,7 @@ const WallpaperInfo& GetWallpaperInfo(int index) {
const WallpaperViewInfo& GetWallpaperViewInfo(int index,
WallpaperResolution resolution) {
+ DCHECK(index >= 0 && index < kDefaultWallpaperCount);
if (resolution == SMALL)
return kDefaultWallpapers[index].small_wallpaper;
else