| Index: chrome/browser/chromeos/login/user_manager_impl.cc
|
| diff --git a/chrome/browser/chromeos/login/user_manager_impl.cc b/chrome/browser/chromeos/login/user_manager_impl.cc
|
| index 4f765e685fd78e58c62e6128f9c578ab09d19cd7..9624e909337468431a9c9dd12c8bf01329b589ee 100644
|
| --- a/chrome/browser/chromeos/login/user_manager_impl.cc
|
| +++ b/chrome/browser/chromeos/login/user_manager_impl.cc
|
| @@ -547,7 +547,7 @@ void UserManagerImpl::SetLoggedInUserCustomWallpaperLayout(
|
| GetWallpaperPathForUser(username, false).value();
|
| SaveWallpaperToLocalState(username, file_path, layout, User::CUSTOMIZED);
|
| // Load wallpaper from file.
|
| - WallpaperManager::Get()->OnUserSelected(username);
|
| + WallpaperManager::Get()->SetUserWallpaper(username);
|
| }
|
|
|
| void UserManagerImpl::SaveUserImageFromFile(const std::string& username,
|
| @@ -1353,6 +1353,14 @@ void UserManagerImpl::RemoveUserFromListInternal(const std::string& email) {
|
| base::Bind(&UserManagerImpl::DeleteUserImage,
|
| base::Unretained(this),
|
| wallpaper_path));
|
| + FilePath wallpaper_original_path = WallpaperManager::Get()->
|
| + GetOriginalWallpaperPathForUser(email);
|
| + BrowserThread::PostTask(
|
| + BrowserThread::FILE,
|
| + FROM_HERE,
|
| + base::Bind(&UserManagerImpl::DeleteUserImage,
|
| + base::Unretained(this),
|
| + wallpaper_original_path));
|
|
|
| DictionaryPrefUpdate prefs_images_update(prefs, kUserImages);
|
| std::string image_path_string;
|
|
|