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

Unified Diff: ash/desktop_background/desktop_background_resources.cc

Issue 10207030: Asynchronously load wallpapers when user pod is selected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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: ash/desktop_background/desktop_background_resources.cc
diff --git a/ash/desktop_background/desktop_background_resources.cc b/ash/desktop_background/desktop_background_resources.cc
index f53ac63fc4837c32b2c47b4cc9ccc68a2fb94906..a9fc8dcdbf97e034a36686652a2ef16527918073 100644
--- a/ash/desktop_background/desktop_background_resources.cc
+++ b/ash/desktop_background/desktop_background_resources.cc
@@ -257,13 +257,8 @@ int GetWallpaperCount() {
return kDefaultWallpaperCount;
}
-const SkBitmap& GetWallpaper(int index) {
- DCHECK(index >= 0 && index < kDefaultWallpaperCount);
- return *ui::ResourceBundle::GetSharedInstance().GetImageNamed(
- kDefaultWallpapers[index].id).ToSkBitmap();
-}
-
const WallpaperInfo& GetWallpaperInfo(int index) {
+ DCHECK(index >= 0 && index < kDefaultWallpaperCount);
return kDefaultWallpapers[index];
}

Powered by Google App Engine
This is Rietveld 408576698