Commit 24c4ddc0 authored by xdai's avatar xdai Committed by Commit bot

This part of code is useless (also harmless) when trying to delete a custom...

This part of code is useless (also harmless) when trying to delete a custom wallpaper in Wallpaper Picker App.
WallpaperManager.removeCustomWallpaper() does all the cleanup work so this part of code becames redundant.

This CL is split from https://codereview.chromium.org/1566713005 and has been lgtmed so land it directly.

BUG=None
TBR=bshe@chromium.org

Review URL: https://codereview.chromium.org/1627483002

Cr-Commit-Position: refs/heads/master@{#371538}
parent 5aa7fd5f
...@@ -296,11 +296,6 @@ chrome.syncFileSystem.onFileStatusChanged.addListener(function(detail) { ...@@ -296,11 +296,6 @@ chrome.syncFileSystem.onFileStatusChanged.addListener(function(detail) {
Constants.CustomWallpaperThumbnailSuffix, ''); Constants.CustomWallpaperThumbnailSuffix, '');
WallpaperUtil.deleteWallpaperFromLocalFS(fileName); WallpaperUtil.deleteWallpaperFromLocalFS(fileName);
} }
} else { // detail.direction == 'local_to_remote'
if (detail.action == 'deleted') {
WallpaperUtil.deleteWallpaperFromSyncFS(detail.fileEntry.name);
WallpaperUtil.deleteWallpaperFromLocalFS(detail.fileEntry.name);
}
} }
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment