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

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

Issue 8538008: Linux: Move base/mime_util* to base/nix. It's not used on any other platform. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/icon_manager_linux.cc ('k') | chrome/browser/ui/gtk/dialogs_kde.cc » ('j') | 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 109608)
+++ chrome/browser/ui/gtk/dialogs_gtk.cc (working copy)
@@ -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 @@
// 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 @@
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());
}
« no previous file with comments | « chrome/browser/icon_manager_linux.cc ('k') | chrome/browser/ui/gtk/dialogs_kde.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698