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

Unified Diff: components/wallpaper/wallpaper_manager_base.cc

Issue 2772973003: 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 e573abe22f3832563df7d23bb2fd36e0b74225a2..188580d6e89d9facb63da745d0c4f3868210c0e3 100644
--- a/components/wallpaper/wallpaper_manager_base.cc
+++ b/components/wallpaper/wallpaper_manager_base.cc
@@ -490,13 +490,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