diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 20:41:21 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 20:41:21 +0000 |
commit | e5285892d1f34618bf65f207c73eaed2e61357f3 (patch) | |
tree | 3029892991a00a440f3bfba91ef6c8edfb7ef292 /chrome/browser/ui/gtk/dialogs_gtk.cc | |
parent | 7e98f94bf8b44c8b16b81a4b12700ed425343f91 (diff) | |
download | chromium_src-e5285892d1f34618bf65f207c73eaed2e61357f3.zip chromium_src-e5285892d1f34618bf65f207c73eaed2e61357f3.tar.gz chromium_src-e5285892d1f34618bf65f207c73eaed2e61357f3.tar.bz2 |
Linux: Move base/mime_util* to base/nix. It's not used on any other platform.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8538008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109685 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/dialogs_gtk.cc')
-rw-r--r-- | chrome/browser/ui/gtk/dialogs_gtk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/gtk/dialogs_gtk.cc b/chrome/browser/ui/gtk/dialogs_gtk.cc index 6064705..b79a171 100644 --- a/chrome/browser/ui/gtk/dialogs_gtk.cc +++ b/chrome/browser/ui/gtk/dialogs_gtk.cc @@ -9,7 +9,7 @@ #include "base/file_util.h" #include "base/logging.h" #include "base/message_loop.h" -#include "base/mime_util.h" +#include "base/nix/mime_util_xdg.h" #include "base/sys_string_conversions.h" #include "base/threading/thread.h" #include "base/threading/thread_restrictions.h" @@ -228,7 +228,7 @@ void SelectFileDialogImplGTK::AddFilters(GtkFileChooser* chooser) { // Allow IO in the file dialog. http://crbug.com/72637 base::ThreadRestrictions::ScopedAllowIO allow_io; - std::string mime_type = mime_util::GetFileMimeType( + std::string mime_type = base::nix::GetFileMimeType( FilePath("name").ReplaceExtension(file_types_.extensions[i][j])); gtk_file_filter_add_mime_type(filter, mime_type.c_str()); } @@ -247,7 +247,7 @@ void SelectFileDialogImplGTK::AddFilters(GtkFileChooser* chooser) { base::ThreadRestrictions::ScopedAllowIO allow_io; // 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( + std::string mime_type = base::nix::GetFileMimeType( FilePath("name").ReplaceExtension(file_types_.extensions[i][0])); gtk_file_filter_set_name(filter, mime_type.c_str()); } |