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

Issue 10700136: Prettify output from chrome.fileSystem.getDisplayPath for POSIX profile directories (Closed)

Created:
8 years, 5 months ago by thorogood
Modified:
8 years, 5 months ago
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

Prettify output from chrome.fileSystem.getDisplayPath for POSIX profile directories This duplicates review 10693089, except for POSIX. Modifies e.g. "/home/sam/foo" to "~/foo". As a dependency, adds DIR_HOME to PathService for retrieving POSIX home directory. BUG=135690 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147833

Patch Set 1 #

Total comments: 10

Patch Set 2 : guard code with OS_WIN || OS_POSIX, plus FilePath fix #

Total comments: 2

Patch Set 3 : wrap case in curly braces #

Patch Set 4 : Do not require that DIR_HOME exists (for unit tests) #

Patch Set 5 : Moved DIR_HOME into base_paths.cc #

Patch Set 6 : Fixed base_paths.cc #

Patch Set 7 : Includes specific fix for Mac OS X, which was excluded from the posix code specifically #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -13 lines) Patch
M base/base_paths.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/base_paths_mac.mm View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M base/base_paths_posix.cc View 1 2 5 6 1 chunk +6 lines, -1 line 0 comments Download
M base/file_util_posix.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 2 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_apitest.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
thorogood
I'll need to find a reviewer for base/, too.
8 years, 5 months ago (2012-07-10 06:51:01 UTC) #1
thorogood
On 2012/07/10 06:51:01, thorogood wrote: > I'll need to find a reviewer for base/, too. ...
8 years, 5 months ago (2012-07-10 06:52:50 UTC) #2
benwells
https://chromiumcodereview.appspot.com/10700136/diff/1/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/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode57 chrome/browser/extensions/api/file_system/file_system_api.cc:57: for (size_t i = 0; i < arraysize(g_rewrite_pairs); ++i) ...
8 years, 5 months ago (2012-07-10 23:57:49 UTC) #3
benwells
https://chromiumcodereview.appspot.com/10700136/diff/1/base/base_paths_posix.cc File base/base_paths_posix.cc (right): https://chromiumcodereview.appspot.com/10700136/diff/1/base/base_paths_posix.cc#newcode96 base/base_paths_posix.cc:96: *result = FilePath(file_util::GetHomeDir()); Can this just be: *result = ...
8 years, 5 months ago (2012-07-11 00:02:03 UTC) #4
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_apitest.cc File chrome/browser/extensions/api/file_system/file_system_apitest.cc (right): https://chromiumcodereview.appspot.com/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_apitest.cc#newcode64 chrome/browser/extensions/api/file_system/file_system_apitest.cc:64: "api_test/file_system/get_display_path_prettify")) << message_; Sorry for not catching this in ...
8 years, 5 months ago (2012-07-11 00:21:10 UTC) #5
thorogood
https://chromiumcodereview.appspot.com/10700136/diff/1/base/base_paths_posix.cc File base/base_paths_posix.cc (right): https://chromiumcodereview.appspot.com/10700136/diff/1/base/base_paths_posix.cc#newcode96 base/base_paths_posix.cc:96: *result = FilePath(file_util::GetHomeDir()); On 2012/07/11 00:02:03, benwells wrote: > ...
8 years, 5 months ago (2012-07-11 00:30:24 UTC) #6
thorogood
https://chromiumcodereview.appspot.com/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_apitest.cc File chrome/browser/extensions/api/file_system/file_system_apitest.cc (right): https://chromiumcodereview.appspot.com/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_apitest.cc#newcode64 chrome/browser/extensions/api/file_system/file_system_apitest.cc:64: "api_test/file_system/get_display_path_prettify")) << message_; On 2012/07/11 00:21:10, Mihai Parparita wrote: ...
8 years, 5 months ago (2012-07-11 04:07:45 UTC) #7
benwells
lgtm http://codereview.chromium.org/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): http://codereview.chromium.org/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode57 chrome/browser/extensions/api/file_system/file_system_api.cc:57: for (size_t i = 0; i < arraysize(g_rewrite_pairs); ...
8 years, 5 months ago (2012-07-11 04:51:45 UTC) #8
Mihai Parparita -not on Chrome
LGTM https://chromiumcodereview.appspot.com/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_apitest.cc File chrome/browser/extensions/api/file_system/file_system_apitest.cc (right): https://chromiumcodereview.appspot.com/10700136/diff/1/chrome/browser/extensions/api/file_system/file_system_apitest.cc#newcode64 chrome/browser/extensions/api/file_system/file_system_apitest.cc:64: "api_test/file_system/get_display_path_prettify")) << message_; On 2012/07/11 04:07:45, thorogood wrote: ...
8 years, 5 months ago (2012-07-11 05:32:28 UTC) #9
thorogood
+jar for base review
8 years, 5 months ago (2012-07-11 23:39:14 UTC) #10
thorogood
On 2012/07/11 23:39:14, thorogood wrote: > +jar for base review ping :)
8 years, 5 months ago (2012-07-20 04:03:22 UTC) #11
jar (doing other things)
With nit below.... LGTM for base (I didn't read other code very carefully) https://chromiumcodereview.appspot.com/10700136/diff/6002/base/base_paths_posix.cc File ...
8 years, 5 months ago (2012-07-20 18:02:54 UTC) #12
thorogood
https://chromiumcodereview.appspot.com/10700136/diff/6002/base/base_paths_posix.cc File base/base_paths_posix.cc (right): https://chromiumcodereview.appspot.com/10700136/diff/6002/base/base_paths_posix.cc#newcode95 base/base_paths_posix.cc:95: case base::DIR_HOME: On 2012/07/20 18:02:54, jar wrote: > nit: ...
8 years, 5 months ago (2012-07-21 07:39:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10700136/14001
8 years, 5 months ago (2012-07-21 07:40:40 UTC) #14
commit-bot: I haz the power
Try job failure for 10700136-14001 (retry) on mac_rel for step "base_unittests". It's a second try, ...
8 years, 5 months ago (2012-07-21 08:40:58 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/10700136/21001
8 years, 5 months ago (2012-07-22 23:46:48 UTC) #16
commit-bot: I haz the power
Try job failure for 10700136-21001 (retry) on mac_rel for step "base_unittests". It's a second try, ...
8 years, 5 months ago (2012-07-23 00:30:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10700136/13002
8 years, 5 months ago (2012-07-23 06:06:09 UTC) #18
commit-bot: I haz the power
Try job failure for 10700136-13002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-23 07:12:53 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/10700136/13002
8 years, 5 months ago (2012-07-23 07:16:15 UTC) #20
commit-bot: I haz the power
8 years, 5 months ago (2012-07-23 08:22:46 UTC) #21
Change committed as 147833

Powered by Google App Engine
This is Rietveld 408576698