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

Unified Diff: chrome/browser/ui/gtk/dialogs_gtk.cc

Issue 6379001: Pass correct dummy filename ("name.html" instead of "name./html") to GTK MIME... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 11 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/gtk/dialogs_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/dialogs_gtk.cc (revision 71648)
+++ chrome/browser/ui/gtk/dialogs_gtk.cc (working copy)
@@ -266,7 +266,7 @@
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 @@
// 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());
}
« 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