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

Issue 10915252: Always include base extension type in Mac select file dialog (Closed)

Created:
8 years, 3 months ago by thorogood
Modified:
8 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman, kinuko+watch, mihaip-chromium-reviews_chromium.org, tzik+watch_chromium.org, Mihai Parparita -not on Chrome
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Always include base extension type in Mac select file dialog Previously, we were only converting the extension to a UTI, and using that to control what files the user could load using the generic select file dialog. For some reason, Mac's conversions of some types - such as '.ogg' - resulted in a UTI prefixed with 'dyn' that didn't seem to correspond back to '.ogg' itself. The solution here is just to always include the original extension as well as the UTI. FWIW, the rest of this file needs updating to support lots of more complex things we now do with Packaged Apps. BUG=148840 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157332

Patch Set 1 #

Total comments: 4

Patch Set 2 : comment to issue #

Total comments: 2

Patch Set 3 : openradar link #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/dialogs/select_file_dialog_mac.mm View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
thorogood
benwells: chrome/browser/extensions/api/file_system thakis: ui/base/dialogs (i.e., the .mm change) Thanks! :)
8 years, 3 months ago (2012-09-13 04:50:14 UTC) #1
Nico
+avi for the select_file_dialog change
8 years, 3 months ago (2012-09-13 04:52:16 UTC) #2
benwells
file_system_api lgtm
8 years, 3 months ago (2012-09-13 05:41:17 UTC) #3
Avi (use Gerrit)
https://codereview.chromium.org/10915252/diff/1/ui/base/dialogs/select_file_dialog_mac.mm File ui/base/dialogs/select_file_dialog_mac.mm (right): https://codereview.chromium.org/10915252/diff/1/ui/base/dialogs/select_file_dialog_mac.mm#newcode234 ui/base/dialogs/select_file_dialog_mac.mm:234: [file_type_set addObject:base::mac::CFToNSCast(ext_cf.get())]; UTIs always exist. Dynamic UTIs exist to ...
8 years, 3 months ago (2012-09-13 05:52:38 UTC) #4
thorogood
On 2012/09/13 05:52:38, Avi wrote: > https://codereview.chromium.org/10915252/diff/1/ui/base/dialogs/select_file_dialog_mac.mm > File ui/base/dialogs/select_file_dialog_mac.mm (right): > > https://codereview.chromium.org/10915252/diff/1/ui/base/dialogs/select_file_dialog_mac.mm#newcode234 > ...
8 years, 3 months ago (2012-09-16 22:49:53 UTC) #5
thorogood
Avi, do you feel like we could submit this change anyway, and just revert it ...
8 years, 3 months ago (2012-09-16 23:50:49 UTC) #6
Avi (use Gerrit)
lgtm https://chromiumcodereview.appspot.com/10915252/diff/1/ui/base/dialogs/select_file_dialog_mac.mm File ui/base/dialogs/select_file_dialog_mac.mm (right): https://chromiumcodereview.appspot.com/10915252/diff/1/ui/base/dialogs/select_file_dialog_mac.mm#newcode234 ui/base/dialogs/select_file_dialog_mac.mm:234: [file_type_set addObject:base::mac::CFToNSCast(ext_cf.get())]; What The F. Can you link ...
8 years, 3 months ago (2012-09-17 02:41:45 UTC) #7
thorogood
thakis@, can you approve? https://chromiumcodereview.appspot.com/10915252/diff/1/ui/base/dialogs/select_file_dialog_mac.mm File ui/base/dialogs/select_file_dialog_mac.mm (right): https://chromiumcodereview.appspot.com/10915252/diff/1/ui/base/dialogs/select_file_dialog_mac.mm#newcode234 ui/base/dialogs/select_file_dialog_mac.mm:234: [file_type_set addObject:base::mac::CFToNSCast(ext_cf.get())]; On 2012/09/17 02:41:45, ...
8 years, 3 months ago (2012-09-17 03:19:06 UTC) #8
Nico
https://chromiumcodereview.appspot.com/10915252/diff/4/ui/base/dialogs/select_file_dialog_mac.mm File ui/base/dialogs/select_file_dialog_mac.mm (right): https://chromiumcodereview.appspot.com/10915252/diff/4/ui/base/dialogs/select_file_dialog_mac.mm#newcode235 ui/base/dialogs/select_file_dialog_mac.mm:235: [file_type_set addObject:base::mac::CFToNSCast(ext_cf.get())]; Did you file a bug with apple ...
8 years, 3 months ago (2012-09-17 08:03:33 UTC) #9
thorogood
https://chromiumcodereview.appspot.com/10915252/diff/4/ui/base/dialogs/select_file_dialog_mac.mm File ui/base/dialogs/select_file_dialog_mac.mm (right): https://chromiumcodereview.appspot.com/10915252/diff/4/ui/base/dialogs/select_file_dialog_mac.mm#newcode235 ui/base/dialogs/select_file_dialog_mac.mm:235: [file_type_set addObject:base::mac::CFToNSCast(ext_cf.get())]; On 2012/09/17 08:03:33, Nico wrote: > Did ...
8 years, 3 months ago (2012-09-18 02:12:25 UTC) #10
Avi (use Gerrit)
Sigh. C'est la vie. LGTM
8 years, 3 months ago (2012-09-18 02:46:05 UTC) #11
Nico
lgtm, thanks
8 years, 3 months ago (2012-09-18 04:38:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10915252/10001
8 years, 3 months ago (2012-09-18 04:39:31 UTC) #13
commit-bot: I haz the power
8 years, 3 months ago (2012-09-18 09:49:38 UTC) #14
Change committed as 157332

Powered by Google App Engine
This is Rietveld 408576698