From 082f820ae49809c136de8a1161618ebbe755f9e0 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Sat, 26 Jan 2013 04:51:29 +0000 Subject: 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 --- base/base_paths_mac.mm | 3 --- 1 file changed, 3 deletions(-) (limited to 'base/base_paths_mac.mm') 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) -- cgit v1.1