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

Unified Diff: components/wallpaper/wallpaper_manager_base.cc

Issue 1857683002: Remove image_bytes parameter from ResizeCustomizedDefaultWallpaper() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « components/wallpaper/wallpaper_manager_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wallpaper/wallpaper_manager_base.cc
diff --git a/components/wallpaper/wallpaper_manager_base.cc b/components/wallpaper/wallpaper_manager_base.cc
index a1538c46ecbd2d27903dc62fb59c74226f4b072b..8b3409c1d979576bf41b79c8e84fd23d826777fd 100644
--- a/components/wallpaper/wallpaper_manager_base.cc
+++ b/components/wallpaper/wallpaper_manager_base.cc
@@ -931,8 +931,7 @@ void WallpaperManagerBase::OnCustomizedDefaultWallpaperDecoded(
// TODO(bshe): This may break if Bytes becomes RefCountedMemory.
base::Closure resize_closure = base::Bind(
&WallpaperManagerBase::ResizeCustomizedDefaultWallpaper,
- // TODO(crbug.com/593251): Remove the data copy via image_bytes().
- base::Passed(&deep_copy), wallpaper->image_bytes(),
+ base::Passed(&deep_copy),
base::Unretained(rescaled_files.get()), base::Unretained(success.get()),
base::Unretained(small_wallpaper_image.get()),
base::Unretained(large_wallpaper_image.get()));
@@ -951,7 +950,6 @@ void WallpaperManagerBase::OnCustomizedDefaultWallpaperDecoded(
void WallpaperManagerBase::ResizeCustomizedDefaultWallpaper(
scoped_ptr<gfx::ImageSkia> image,
- const user_manager::UserImage::Bytes& image_bytes,
const CustomizedWallpaperRescaledFiles* rescaled_files,
bool* success,
gfx::ImageSkia* small_wallpaper_image,
« no previous file with comments | « components/wallpaper/wallpaper_manager_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698