Chromium Code Reviews| Index: base/mac/foundation_util.mm |
| diff --git a/base/mac/foundation_util.mm b/base/mac/foundation_util.mm |
| index 1d33391f1e2341da72732c14b2a20e99520fb9d9..40bcb4db579622616eb556a5f629a2990e6f6af9 100644 |
| --- a/base/mac/foundation_util.mm |
| +++ b/base/mac/foundation_util.mm |
| @@ -36,8 +36,10 @@ static bool UncachedAmIBundled() { |
| return g_override_am_i_bundled_value; |
| NSBundle* bundle = base::mac::OuterBundle(); |
| - NSArray* bundle_parts = [[bundle bundlePath] pathComponents]; |
| - NSArray* executable_parts = [[bundle executablePath] pathComponents]; |
| + NSArray* bundle_parts = |
| + [[[bundle bundlePath] stringByStandardizingPath] pathComponents]; |
|
Mark Mentovai
2013/10/25 22:54:56
This isn’t really correct. The tilde expansion it
|
| + NSArray* executable_parts = |
| + [[[bundle executablePath] stringByStandardizingPath] pathComponents]; |
| // Bundled executables are exactly three levels deeper than their bundle. |
| // Non-bundled executables have a fake bundle with a bundle path of their |