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

Unified Diff: components/wallpaper/wallpaper_manager_base.h

Issue 1794323003: Make user_manager::UserImage non-copyable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just rebase Created 4 years, 9 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/user_manager/user_image/user_image.cc ('k') | components/wallpaper/wallpaper_manager_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wallpaper/wallpaper_manager_base.h
diff --git a/components/wallpaper/wallpaper_manager_base.h b/components/wallpaper/wallpaper_manager_base.h
index 80aa6b1895013f35b5f719f2feac141146a6e442..f27e46549b7d65fb9cddf8f0098958ac42d9a1c9 100644
--- a/components/wallpaper/wallpaper_manager_base.h
+++ b/components/wallpaper/wallpaper_manager_base.h
@@ -476,7 +476,7 @@ class WALLPAPER_EXPORT WallpaperManagerBase {
WallpaperLayout layout,
bool update_wallpaper,
MovableOnDestroyCallbackHolder on_finish,
- const user_manager::UserImage& user_image) = 0;
+ scoped_ptr<user_manager::UserImage> user_image) = 0;
// Creates new PendingWallpaper request (or updates currently pending).
virtual void ScheduleSetUserWallpaper(const AccountId& account_id,
@@ -518,7 +518,7 @@ class WALLPAPER_EXPORT WallpaperManagerBase {
virtual void OnCustomizedDefaultWallpaperDecoded(
const GURL& wallpaper_url,
scoped_ptr<CustomizedWallpaperRescaledFiles> rescaled_files,
- const user_manager::UserImage& user_image);
+ scoped_ptr<user_manager::UserImage> user_image);
// Check the result of ResizeCustomizedDefaultWallpaper and finally
// apply Customized Default Wallpaper.
@@ -540,7 +540,7 @@ class WALLPAPER_EXPORT WallpaperManagerBase {
const WallpaperLayout layout,
scoped_ptr<user_manager::UserImage>* result,
MovableOnDestroyCallbackHolder on_finish,
- const user_manager::UserImage& user_image) = 0;
+ scoped_ptr<user_manager::UserImage> user_image) = 0;
// Start decoding given default wallpaper.
virtual void StartLoadAndSetDefaultWallpaper(
« no previous file with comments | « components/user_manager/user_image/user_image.cc ('k') | components/wallpaper/wallpaper_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698