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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc

Issue 10826084: Fixed SelectFile parameter for the Wallpaper chooser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc
index 51da83619e5eaba5bfc7465e5d218ff5ba028665..04a7219f2ca8ab826e0aeb4fef2ce48488ef045c 100644
--- a/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc
@@ -34,12 +34,17 @@ namespace {
// Returns info about extensions for files we support as wallpaper images.
ui::SelectFileDialog::FileTypeInfo GetUserImageFileTypeInfo() {
ui::SelectFileDialog::FileTypeInfo file_type_info;
- file_type_info.extensions.resize(3);
+ file_type_info.extensions.resize(1);
file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpg"));
- file_type_info.extensions[1].push_back(FILE_PATH_LITERAL("jpeg"));
+ file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpeg"));
+ file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("png"));
- file_type_info.extensions[2].push_back(FILE_PATH_LITERAL("png"));
+ file_type_info.extension_description_overrides.resize(1);
+ file_type_info.extension_description_overrides[0] =
+ l10n_util::GetStringUTF16(IDS_IMAGE_FILES);
+
+ file_type_info.include_all_files = true;
return file_type_info;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698