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

Issue 159833003: Add support for GetHomeDir for Mac and Windows. (Closed)

Created:
6 years, 10 months ago by brettw
Modified:
6 years, 10 months ago
Reviewers:
benwells
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Add support for GetHomeDir for Mac and Windows. Unifies the Path Service's base::DIR_HOME on Posix and base::DIR_PROFILE on Windows to just be base::DIR_HOME everywhere, and DIR_HOME will now work on Mac. This removes the AssertIOAllowed check in the Posix implementation because that was only executed in a fallback case that no developer is likely to ever hit. In addition, the we do call this type of function on the UI thread, so either we need to promote the assertion to be at the top of the function or delete it. It seemed unreasonable to disallow using this one key of the path service on the UI thread (the other ones are OK) so I just went for deleting the assertion. R=benwells@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252066

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : remove DIR_PROFILE #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Fix Android compile #

Total comments: 6

Patch Set 10 : git try #

Total comments: 2

Patch Set 11 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -73 lines) Patch
M base/base_paths.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M base/base_paths.cc View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -18 lines 0 comments Download
M base/base_paths_android.cc View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M base/base_paths_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M base/base_paths_posix.h View 1 chunk +0 lines, -2 lines 0 comments Download
M base/base_paths_posix.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M base/base_paths_win.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M base/base_paths_win.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M base/file_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -7 lines 0 comments Download
M base/file_util_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M base/file_util_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
M base/path_service_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_apitest.cc View 1 2 3 2 chunks +2 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
brettw
6 years, 10 months ago (2014-02-12 22:10:39 UTC) #1
brettw
ping?
6 years, 10 months ago (2014-02-14 23:34:26 UTC) #2
benwells
Sorry for not seeing this soon :-/ https://codereview.chromium.org/159833003/diff/540001/base/base_paths.cc File base/base_paths.cc (left): https://codereview.chromium.org/159833003/diff/540001/base/base_paths.cc#oldcode39 base/base_paths.cc:39: default: Nit: ...
6 years, 10 months ago (2014-02-16 23:39:50 UTC) #3
brettw
New snap up, thanks. https://codereview.chromium.org/159833003/diff/540001/base/base_paths.cc File base/base_paths.cc (left): https://codereview.chromium.org/159833003/diff/540001/base/base_paths.cc#oldcode39 base/base_paths.cc:39: default: Oh, OK. I was ...
6 years, 10 months ago (2014-02-18 19:24:42 UTC) #4
benwells
lgtm with a couple of nits https://codereview.chromium.org/159833003/diff/790001/base/file_util_mac.mm File base/file_util_mac.mm (right): https://codereview.chromium.org/159833003/diff/790001/base/file_util_mac.mm#newcode38 base/file_util_mac.mm:38: FilePath mac_home_dir = ...
6 years, 10 months ago (2014-02-18 23:14:39 UTC) #5
brettw
6 years, 10 months ago (2014-02-19 20:36:42 UTC) #6
Message was sent while issue was closed.
Committed patchset #11 manually as r252066 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698