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

Issue 10823157: Prettify Mac names, rewrite getDisplayPath API call to focus on $HOME (Closed)

Created:
8 years, 4 months ago by thorogood
Modified:
8 years, 3 months ago
Reviewers:
benwells, Nico
CC:
chromium-reviews, erikwright (departed), kinuko+watch, mihaip-chromium-reviews_chromium.org, Aaron Boodman, brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

This updates the getDisplayPath fileSystem API call to focus more on prettifying the user's home directory: this seems to be the main obvious use of function for now (it's previous extensibility was probably needless). Additionally, this adds code specifically to prettify Mac path names, which have various possibilities for prettifying through localization, but are singly exposed via the LSCopyDisplayNameForRef call. Basically, on a Mac, folders that end with ".localized" or ".app" can be localized due to their contents (e.g., they may have a name for English, and another for German). Additionally, folders directly within your home directory may be localized by your system language settings (again, perhaps you're set to non-English). These folders do not change their actual name on disk, but within Finder/etc, they appear differently. BUG=135690 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157043

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : Actually works on Mac now #

Total comments: 2

Patch Set 4 : Rewrite getDisplayPath to focus on home directories, adds better Mac support #

Total comments: 19

Patch Set 5 : update for benwells #

Total comments: 2

Patch Set 6 : basename rename #

Patch Set 7 : GetDisplayBaseName #

Patch Set 8 : comment #

Total comments: 12

Patch Set 9 : CFRelease, DCHECK_EQ, etc #

Patch Set 10 : missed removing comment #

Patch Set 11 : move Mac stuff into api cc #

Patch Set 12 : Broke apart OS_MACOSX and other case #

Total comments: 2

Patch Set 13 : sync to head #

Patch Set 14 : tiny extra { fix #

Patch Set 15 : removed comment #

Patch Set 16 : fixed Linux case #

Patch Set 17 : merge #

Patch Set 18 : sync #

Patch Set 19 : sync to HEAD #

Patch Set 20 : rename File=>Entry #

Patch Set 21 : windows fix #

Messages

Total messages: 33 (0 generated)
thorogood
Hi Ben, The test is a bit of a mess, but the rest of this ...
8 years, 4 months ago (2012-08-03 07:21:38 UTC) #1
benwells
http://chromiumcodereview.appspot.com/10823157/diff/5001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://chromiumcodereview.appspot.com/10823157/diff/5001/base/mac/foundation_util.h#newcode90 base/mac/foundation_util.h:90: void GetDisplayNameForPath(const FilePath& path, std::string* result); This will need ...
8 years, 4 months ago (2012-08-06 01:59:14 UTC) #2
thorogood
thakis: base/mac benwells: chrome/browser/extensions Thanks! :) https://chromiumcodereview.appspot.com/10823157/diff/5001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/5001/base/mac/foundation_util.h#newcode90 base/mac/foundation_util.h:90: void GetDisplayNameForPath(const FilePath& ...
8 years, 3 months ago (2012-09-03 07:20:23 UTC) #3
benwells
https://chromiumcodereview.appspot.com/10823157/diff/9001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/9001/base/mac/foundation_util.h#newcode90 base/mac/foundation_util.h:90: BASE_EXPORT std::string GetDisplayNameForPath(const FilePath& path); Is this the display ...
8 years, 3 months ago (2012-09-04 04:15:00 UTC) #4
thorogood
https://chromiumcodereview.appspot.com/10823157/diff/9001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/9001/base/mac/foundation_util.h#newcode90 base/mac/foundation_util.h:90: BASE_EXPORT std::string GetDisplayNameForPath(const FilePath& path); On 2012/09/04 04:15:01, benwells ...
8 years, 3 months ago (2012-09-04 05:57:33 UTC) #5
benwells
https://chromiumcodereview.appspot.com/10823157/diff/9001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/9001/base/mac/foundation_util.h#newcode90 base/mac/foundation_util.h:90: BASE_EXPORT std::string GetDisplayNameForPath(const FilePath& path); On 2012/09/04 05:57:33, thorogood ...
8 years, 3 months ago (2012-09-04 06:38:11 UTC) #6
thorogood
https://chromiumcodereview.appspot.com/10823157/diff/9001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/9001/base/mac/foundation_util.h#newcode90 base/mac/foundation_util.h:90: BASE_EXPORT std::string GetDisplayNameForPath(const FilePath& path); On 2012/09/04 06:38:11, benwells ...
8 years, 3 months ago (2012-09-04 06:45:43 UTC) #7
Nico
https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h#newcode89 base/mac/foundation_util.h:89: // If the path is not localized, this will ...
8 years, 3 months ago (2012-09-04 14:09:37 UTC) #8
thorogood
https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h#newcode89 base/mac/foundation_util.h:89: // If the path is not localized, this will ...
8 years, 3 months ago (2012-09-06 00:16:53 UTC) #9
Nico
https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h#newcode89 base/mac/foundation_util.h:89: // If the path is not localized, this will ...
8 years, 3 months ago (2012-09-06 00:22:28 UTC) #10
thorogood
https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h File base/mac/foundation_util.h (right): https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h#newcode89 base/mac/foundation_util.h:89: // If the path is not localized, this will ...
8 years, 3 months ago (2012-09-06 04:42:37 UTC) #11
Nico
On 2012/09/06 04:42:37, thorogood wrote: > https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h > File base/mac/foundation_util.h (right): > > https://chromiumcodereview.appspot.com/10823157/diff/12003/base/mac/foundation_util.h#newcode89 > ...
8 years, 3 months ago (2012-09-06 05:21:38 UTC) #12
thorogood
Hey Ben, as discussed in-person, I've broken apart the OSX parts vs. the other parts. ...
8 years, 3 months ago (2012-09-06 08:35:01 UTC) #13
thorogood
On 2012/09/06 08:35:01, thorogood wrote: > Hey Ben, as discussed in-person, I've broken apart the ...
8 years, 3 months ago (2012-09-10 15:01:24 UTC) #14
benwells
lgtm with tiny nits https://chromiumcodereview.appspot.com/10823157/diff/24002/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://chromiumcodereview.appspot.com/10823157/diff/24002/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode130 chrome/browser/extensions/api/file_system/file_system_api.cc:130: #endif // defined(OS_MACOSX) Nit: two ...
8 years, 3 months ago (2012-09-12 02:32:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/24004
8 years, 3 months ago (2012-09-13 02:49:30 UTC) #16
thorogood
https://chromiumcodereview.appspot.com/10823157/diff/24002/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://chromiumcodereview.appspot.com/10823157/diff/24002/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode130 chrome/browser/extensions/api/file_system/file_system_api.cc:130: #endif // defined(OS_MACOSX) On 2012/09/12 02:32:24, benwells wrote: > ...
8 years, 3 months ago (2012-09-13 02:49:39 UTC) #17
commit-bot: I haz the power
Try job failure for 10823157-24004 (retry) on linux_clang for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-13 03:12:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/22009
8 years, 3 months ago (2012-09-13 04:37:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/9005
8 years, 3 months ago (2012-09-13 04:39:38 UTC) #20
commit-bot: I haz the power
Try job failure for 10823157-9005 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-13 06:14:56 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/9005
8 years, 3 months ago (2012-09-13 06:22:42 UTC) #22
commit-bot: I haz the power
Try job failure for 10823157-9005 (retry) on linux_chromeos for step "browser_tests". It's a second try, ...
8 years, 3 months ago (2012-09-13 08:01:37 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/22013
8 years, 3 months ago (2012-09-13 22:38:33 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/23016
8 years, 3 months ago (2012-09-13 22:44:22 UTC) #25
commit-bot: I haz the power
Retried try job too often for step(s) crypto_unittests, unit_tests, cacheinvalidation_unittests, remoting_unittests, jingle_unittests, nacl_integration, ipc_tests, interactive_ui_tests, ...
8 years, 3 months ago (2012-09-13 22:59:21 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/23018
8 years, 3 months ago (2012-09-14 04:19:13 UTC) #27
commit-bot: I haz the power
Retried try job too often for step(s) compile
8 years, 3 months ago (2012-09-14 04:23:26 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/17011
8 years, 3 months ago (2012-09-16 00:21:11 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/14020
8 years, 3 months ago (2012-09-16 01:19:39 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-16 03:08:14 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10823157/10032
8 years, 3 months ago (2012-09-16 03:11:13 UTC) #32
commit-bot: I haz the power
8 years, 3 months ago (2012-09-16 07:24:41 UTC) #33
Change committed as 157043

Powered by Google App Engine
This is Rietveld 408576698