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

Unified Diff: base/mime_util_linux.cc

Issue 151033: More web contents dragging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more Dones Created 11 years, 6 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 | « base/mime_util.h ('k') | chrome/browser/gtk/bookmark_bar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mime_util_linux.cc
===================================================================
--- base/mime_util_linux.cc (revision 19526)
+++ base/mime_util_linux.cc (working copy)
@@ -561,6 +561,10 @@
return xdg_mime_get_mime_type_from_file_name(filepath.value().c_str());
}
+std::string GetDataMimeType(const std::string& data) {
+ return xdg_mime_get_mime_type_for_data(data.data(), data.length(), NULL);
+}
+
FilePath GetMimeIcon(const std::string& mime_type, size_t size) {
std::vector<std::string> icon_names;
std::string icon_name;
« no previous file with comments | « base/mime_util.h ('k') | chrome/browser/gtk/bookmark_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698