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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.cc

Issue 10832019: Speed up custom wallpaper switching time and wallpaper manager code refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile 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 | « chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.cc b/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.cc
index bc4fd668a78f2518b5f73b64cf687718e844c4c2..d089cb6de54ca53cc7ce827e0b8047e129259034 100644
--- a/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.cc
@@ -15,6 +15,7 @@
#include "base/threading/thread_restrictions.h"
#include "base/threading/worker_pool.h"
#include "chrome/browser/chromeos/login/user_manager.h"
+#include "chrome/browser/chromeos/login/wallpaper_manager.h"
#include "chrome/browser/io_thread.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/common/url_constants.h"
@@ -51,8 +52,9 @@ class WallpaperThumbnailSource::ThumbnailEncodingOperation
void EncodeThumbnail() {
if (cancel_flag_.IsSet())
return;
- gfx::PNGCodec::EncodeBGRASkBitmap(user_->wallpaper_thumbnail(),
- false, &data_->data());
+ gfx::PNGCodec::EncodeBGRASkBitmap(
+ WallpaperManager::Get()->GetCustomWallpaperThumbnail(user_->email()),
+ false, &data_->data());
}
void Cancel() {
« no previous file with comments | « chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698