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

Unified Diff: components/wallpaper/wallpaper_manager_base.cc

Issue 2789643002: [Merge to M58]Chrome OS: revert the device wallpaper change within a user session. (Closed)
Patch Set: Created 3 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/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 98022796fc49d9d06c87fa7c91d4d93d14e8cbc0..f81a395cbc53db5256b2838b8f8e5347a5c11a3f 100644
--- a/components/wallpaper/wallpaper_manager_base.cc
+++ b/components/wallpaper/wallpaper_manager_base.cc
@@ -474,13 +474,7 @@ void WallpaperManagerBase::OnPolicyCleared(const std::string& policy,
GetUserWallpaperInfo(account_id, &info);
info.type = user_manager::User::DEFAULT;
SetUserWallpaperInfo(account_id, info, true /* is_persistent */);
- // If the user's policy is cleared, try to set the device wallpaper first.
- // Note We have to modify the user wallpaper info first. Otherwise, we won't
- // be able to override the current user policy wallpaper. The wallpaper info
- // will be set correctly if the device wallpaper is set successfully.
- if (!SetDeviceWallpaperIfApplicable(account_id)) {
- SetDefaultWallpaperNow(account_id);
- }
+ SetDefaultWallpaperNow(account_id);
}
// static
« 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