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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.cc

Issue 1631923004: Sync 3rd party wallpaper app name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address tbarzic@'s comment. Created 4 years, 10 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/extensions/wallpaper_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
index 11387ea108b2f2b79b6a01e7a7447f861d980b1f..8acdf505a9247db0cd633bbb31bdc0c969567f2f 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
@@ -634,9 +634,8 @@ void WallpaperPrivateSetCustomWallpaperFunction::OnWallpaperDecoded(
unsafe_wallpaper_decoder_ = NULL;
Profile* profile = Profile::FromBrowserContext(browser_context());
- // This API is only available to the component wallpaper picker. We do not
- // need to show the app's name if it is the component wallpaper picker. So set
- // the pref to empty string.
+ // TODO(xdai): This preference is unused now. For compatiblity concern, we
+ // need to keep it until it's safe to clean it up.
profile->GetPrefs()->SetString(prefs::kCurrentWallpaperAppName,
std::string());

Powered by Google App Engine
This is Rietveld 408576698