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

Unified Diff: chrome/browser/resources/chromeos/wallpaper_manager/js/util.js

Issue 642943002: Add tests for sync custom wallpaper feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge to resolve conflict Created 6 years, 1 month 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 | « no previous file | chrome/test/data/chromeos/wallpaper_manager/unit_tests/api_mock.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/wallpaper_manager/js/util.js
diff --git a/chrome/browser/resources/chromeos/wallpaper_manager/js/util.js b/chrome/browser/resources/chromeos/wallpaper_manager/js/util.js
index d083d3f0f9126b7e7c2e7f333ed9b710c365db58..777a23628977a757ee72806ba082d8b20c329a52 100644
--- a/chrome/browser/resources/chromeos/wallpaper_manager/js/util.js
+++ b/chrome/browser/resources/chromeos/wallpaper_manager/js/util.js
@@ -54,6 +54,7 @@ WallpaperUtil.storeWallpaperFromSyncFSToLocalFS = function(wallpaperFileEntry) {
var storeDir = Constants.WallpaperDirNameEnum.ORIGINAL;
if (filenName.indexOf(Constants.CustomWallpaperThumbnailSuffix) != -1)
storeDir = Constants.WallpaperDirNameEnum.THUMBNAIL;
+ filenName = filenName.replace(Constants.CustomWallpaperThumbnailSuffix, '');
wallpaperFileEntry.file(function(file) {
var reader = new FileReader();
reader.onloadend = function() {
« no previous file with comments | « no previous file | chrome/test/data/chromeos/wallpaper_manager/unit_tests/api_mock.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698