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

Unified Diff: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h

Issue 1887983005: Revert of Remove WallpaperManager dependency on Cryptohome. (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
Index: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h
diff --git a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h
index 8a93346bf17b7db29ac8e9411a2523fdc69ec5b3..b277c10be9dba1ba47fbf25a411ae60c096bc086 100644
--- a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h
+++ b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h
@@ -128,9 +128,9 @@
// Returns queue size.
size_t GetPendingListSizeForTesting() const override;
- // Returns wallpaper files id for the |account_id|.
+ // Returns wallpaper files id for the user.
wallpaper::WallpaperFilesId GetFilesId(
- const AccountId& account_id) const override;
+ const user_manager::User& user) const override;
// Overridden from user_manager::UserManager::UserSessionStateObserver:
void UserChangedChildStatus(user_manager::User* user) override;
@@ -156,6 +156,15 @@
void SetPolicyControlledWallpaper(
const AccountId& account_id,
std::unique_ptr<user_manager::UserImage> user_image);
+
+ // Calls SetCustomWallpaper() with |wallpaper_files_id_str| received from
+ // cryptohome.
+ void SetCustomWallpaperOnSanitizedUsername(
+ const AccountId& account_id,
+ const gfx::ImageSkia& image,
+ bool update_wallpaper,
+ bool cryptohome_success,
+ const std::string& wallpaper_files_id_str);
// WallpaperManagerBase overrides:
void InitializeRegisteredDeviceWallpaper() override;

Powered by Google App Engine
This is Rietveld 408576698