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

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

Issue 16634016: Support png wallpapers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: spelling Created 7 years, 6 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/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;
}
« no previous file with comments | « chrome/browser/chromeos/login/wallpaper_manager.cc ('k') | chrome/browser/resources/chromeos/wallpaper_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698