diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-26 04:51:29 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-26 04:51:29 +0000 |
commit | 082f820ae49809c136de8a1161618ebbe755f9e0 (patch) | |
tree | 9ddbe59621b43cc03baa36a4c250d354427f91e7 /base/base_paths_mac.mm | |
parent | 303e7bab6e006fcea8fb09b29b726fc80394d8ab (diff) | |
download | chromium_src-082f820ae49809c136de8a1161618ebbe755f9e0.zip chromium_src-082f820ae49809c136de8a1161618ebbe755f9e0.tar.gz chromium_src-082f820ae49809c136de8a1161618ebbe755f9e0.tar.bz2 |
Remove ".." from PathService take #2.
Hook directly into PathService::Get() and only convert to an absolute path when
".." is found in the path. Otherwise leave it as-is. In particular, this won't
trigger when the path is simply relative, like "./unit_tests". This is
necessary to make most test cases pass but this has the advatange of not
triggering in the common case for Google Chrome.
R=cpu@chromium.org,mark@chromium.org
BUG=168890
Review URL: https://chromiumcodereview.appspot.com/12090003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths_mac.mm')
-rw-r--r-- | base/base_paths_mac.mm | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/base/base_paths_mac.mm b/base/base_paths_mac.mm index d217d90..630f742 100644 --- a/base/base_paths_mac.mm +++ b/base/base_paths_mac.mm @@ -90,9 +90,6 @@ bool PathProviderMac(int key, FilePath* result) { *result = result->DirName().DirName(); } #endif - if (result->ReferencesParent()) { - return file_util::AbsolutePath(result); - } return true; case base::DIR_USER_DESKTOP: #if defined(OS_IOS) |