Index: chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js |
diff --git a/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js b/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js |
index 01110509eb20b268160e04e25afcf77bebe03068..b9efd3be21345a8e26c7ee3c56b576785163d46b 100644 |
--- a/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js |
+++ b/chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js |
@@ -709,7 +709,8 @@ function WallpaperManager(dialogDom) { |
var files = $('file-selector').files; |
if (files.length != 1) |
console.error('More than one files are selected or no file selected'); |
- if (!files[0].type.match('image/jpeg')) { |
+ if (!files[0].type.match('image/jpeg') && |
+ !files[0].type.match('image/png')) { |
this.showError_(str('invalidWallpaper')); |
return; |
} |