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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.h

Issue 11366143: Fix the crash in DesktopBackgroundView::OnPaint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oshima's review and rebase to TOT Created 8 years, 1 month 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 | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/wallpaper_private_api.h
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.h b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
index f640cad77cd94cb16cac2561fb9e383eea86f8d1..9b9ed1f367ec7f270b5dce7a2aee3bb6af3bd19f 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.h
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
@@ -63,12 +63,13 @@ class WallpaperSetWallpaperFunction : public WallpaperFunctionBase {
void SaveToFile();
// Sets wallpaper to the decoded image.
- void SetDecodedWallpaper();
+ void SetDecodedWallpaper(scoped_ptr<gfx::ImageSkia> wallpaper);
// Layout of the downloaded wallpaper.
ash::WallpaperLayout layout_;
- // The decoded wallpaper.
+ // The decoded wallpaper. It may accessed from UI thread to set wallpaper or
+ // FILE thread to resize and save wallpaper to disk.
gfx::ImageSkia wallpaper_;
// Email address of logged in user.
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698