summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/dialogs_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/gtk/dialogs_gtk.cc')
-rw-r--r--chrome/browser/ui/gtk/dialogs_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/gtk/dialogs_gtk.cc b/chrome/browser/ui/gtk/dialogs_gtk.cc
index 5b978ca..287116a 100644
--- a/chrome/browser/ui/gtk/dialogs_gtk.cc
+++ b/chrome/browser/ui/gtk/dialogs_gtk.cc
@@ -266,7 +266,7 @@ void SelectFileDialogImpl::AddFilters(GtkFileChooser* chooser) {
if (!filter)
filter = gtk_file_filter_new();
std::string mime_type = mime_util::GetFileMimeType(
- FilePath("name.").Append(file_types_.extensions[i][j]));
+ FilePath("name").ReplaceExtension(file_types_.extensions[i][j]));
gtk_file_filter_add_mime_type(filter, mime_type.c_str());
}
}
@@ -283,7 +283,7 @@ void SelectFileDialogImpl::AddFilters(GtkFileChooser* chooser) {
// There is no system default filter description so we use
// the MIME type itself if the description is blank.
std::string mime_type = mime_util::GetFileMimeType(
- FilePath("name.").Append(file_types_.extensions[i][0]));
+ FilePath("name").ReplaceExtension(file_types_.extensions[i][0]));
gtk_file_filter_set_name(filter, mime_type.c_str());
}