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

Issue 113168: Add xdg mime support on Linux. (Closed)

Created:
11 years, 7 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add xdg mime support on Linux. BUG=10049 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=16227

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 16

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 34

Patch Set 8 : '' #

Total comments: 44

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 10

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5355 lines, -13 lines) Patch
M base/base.gyp View 13 4 chunks +23 lines, -2 lines 0 comments Download
A base/mime_util.h View 1 chunk +28 lines, -0 lines 0 comments Download
A base/mime_util_linux.cc View 1 chunk +564 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/README View 1 chunk +8 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/README.chromium View 1 chunk +10 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/compile.patch View 1 chunk +27 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmime.h View 1 chunk +127 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmime.c View 1 chunk +926 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimealias.h View 1 chunk +51 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimealias.c View 1 chunk +184 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimecache.h View 1 chunk +81 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimecache.c View 1 chunk +1004 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimeglob.h View 1 chunk +68 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimeglob.c View 1 chunk +602 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimeicon.h View 1 chunk +50 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimeicon.c View 1 chunk +183 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimeint.h View 1 chunk +77 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimeint.c View 1 chunk +191 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimemagic.h View 1 chunk +57 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimemagic.c View 1 chunk +813 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimeparent.h View 1 chunk +51 lines, -0 lines 0 comments Download
A base/third_party/xdg_mime/xdgmimeparent.c View 1 chunk +219 lines, -0 lines 0 comments Download
M net/base/platform_mime_util_linux.cc View 2 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Evan Stade
http://codereview.chromium.org/113168/diff/141/142 File chrome/common/mime_icon.h (right): http://codereview.chromium.org/113168/diff/141/142#newcode12 Line 12: /** Gets the mime type for a file. ...
11 years, 7 months ago (2009-05-11 18:11:05 UTC) #1
Evan Stade
I'd also put those mime_icon functions in a namespace (probably mime_icon::, since it should match ...
11 years, 7 months ago (2009-05-11 18:35:49 UTC) #2
Lei Zhang
http://codereview.chromium.org/113168/diff/141/142 File chrome/common/mime_icon.h (right): http://codereview.chromium.org/113168/diff/141/142#newcode12 Line 12: /** Gets the mime type for a file. ...
11 years, 7 months ago (2009-05-11 18:39:12 UTC) #3
Evan Stade
http://codereview.chromium.org/113168/diff/141/143 File chrome/common/mime_icon_linux.cc (right): http://codereview.chromium.org/113168/diff/141/143#newcode479 Line 479: i = icon_name.find('/', i + 1)) On 2009/05/11 ...
11 years, 7 months ago (2009-05-11 18:51:17 UTC) #4
Evan Stade
lgtm
11 years, 7 months ago (2009-05-11 18:52:05 UTC) #5
Evan Martin
http://codereview.chromium.org/113168/diff/265/288 File chrome/chrome.gyp (right): http://codereview.chromium.org/113168/diff/265/288#newcode447 Line 447: 'third_party/xdg_mime/xdgmime.c', Should this be its own library? It ...
11 years, 7 months ago (2009-05-11 21:15:46 UTC) #6
Evan Stade
http://codereview.chromium.org/113168/diff/265/266 File chrome/common/mime_util.h (right): http://codereview.chromium.org/113168/diff/265/266#newcode19 Line 19: // Gets the file name for an icon ...
11 years, 7 months ago (2009-05-11 22:51:20 UTC) #7
Lei Zhang
I reorganized the mime util code, apologies for making it difficult to diff between patch ...
11 years, 7 months ago (2009-05-11 23:45:42 UTC) #8
Lei Zhang
On 2009/05/11 22:51:20, Evan Stade wrote: > http://codereview.chromium.org/113168/diff/265/266 > File chrome/common/mime_util.h (right): > > http://codereview.chromium.org/113168/diff/265/266#newcode19 ...
11 years, 7 months ago (2009-05-11 23:50:26 UTC) #9
Evan Martin
High-level comments: this seems to a bunch of grunging around on the file system, but ...
11 years, 7 months ago (2009-05-12 00:04:16 UTC) #10
Evan Stade
On 2009/05/12 00:04:16, Evan Martin wrote: > Does it happen on the proper thread? It ...
11 years, 7 months ago (2009-05-12 00:08:02 UTC) #11
Evan Stade
porting code for style sucks huh? http://codereview.chromium.org/113168/diff/298/300 File chrome/common/mime_util_linux.cc (right): http://codereview.chromium.org/113168/diff/298/300#newcode27 Line 27: // Store ...
11 years, 7 months ago (2009-05-12 01:41:21 UTC) #12
Lei Zhang
http://codereview.chromium.org/113168/diff/298/299 File chrome/common/mime_util.h (right): http://codereview.chromium.org/113168/diff/298/299#newcode19 Line 19: // Gets the file name for an icon ...
11 years, 7 months ago (2009-05-12 02:36:22 UTC) #13
Evan Martin
I'm kinda astounded at how much code we need to get icons right. Nice work. ...
11 years, 7 months ago (2009-05-12 23:49:53 UTC) #14
Lei Zhang
Ya, turns out implementing the spec takes a bit more work than the pseudo code ...
11 years, 7 months ago (2009-05-13 06:28:03 UTC) #15
Evan Stade
ping
11 years, 7 months ago (2009-05-14 21:43:35 UTC) #16
Lei Zhang
On 2009/05/14 21:43:35, Evan Stade wrote: > ping pong. patch set 13 moved everything into ...
11 years, 7 months ago (2009-05-14 23:23:07 UTC) #17
Evan Stade
On 2009/05/14 23:23:07, Lei Zhang wrote: > On 2009/05/14 21:43:35, Evan Stade wrote: > > ...
11 years, 7 months ago (2009-05-14 23:28:51 UTC) #18
Lei Zhang
On 2009/05/14 23:28:51, Evan Stade wrote: > On 2009/05/14 23:23:07, Lei Zhang wrote: > > ...
11 years, 7 months ago (2009-05-14 23:38:32 UTC) #19
Lei Zhang
On 2009/05/14 23:38:32, Lei Zhang wrote: > On 2009/05/14 23:28:51, Evan Stade wrote: > > ...
11 years, 7 months ago (2009-05-15 21:30:27 UTC) #20
Evan Martin
11 years, 7 months ago (2009-05-15 22:55:49 UTC) #21
LGTM rubber stamp

Powered by Google App Engine
This is Rietveld 408576698