| Index: base/mac/mac_util.mm
|
| diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
|
| index 2ba1a3031789ee737b4353315d9f498f0e1f268d..592e8cd6b1b6ad6c15b53fdd9b63a4a7239ff5e5 100644
|
| --- a/base/mac/mac_util.mm
|
| +++ b/base/mac/mac_util.mm
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/file_path.h"
|
| #include "base/logging.h"
|
| +#include "base/mac/bundle_locations.h"
|
| #include "base/mac/foundation_util.h"
|
| #include "base/mac/scoped_cftyperef.h"
|
| #include "base/memory/scoped_nsobject.h"
|
| @@ -72,7 +73,7 @@ LSSharedFileListItemRef GetLoginItemForApp() {
|
| scoped_nsobject<NSArray> login_items_array(
|
| CFToNSCast(LSSharedFileListCopySnapshot(login_items, NULL)));
|
|
|
| - NSURL* url = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
|
| + NSURL* url = [NSURL fileURLWithPath:[base::mac::MainBundle() bundlePath]];
|
|
|
| for(NSUInteger i = 0; i < [login_items_array count]; ++i) {
|
| LSSharedFileListItemRef item = reinterpret_cast<LSSharedFileListItemRef>(
|
| @@ -416,7 +417,7 @@ void AddToLoginItems(bool hide_on_startup) {
|
| LSSharedFileListItemRemove(login_items, item);
|
| }
|
|
|
| - NSURL* url = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
|
| + NSURL* url = [NSURL fileURLWithPath:[base::mac::MainBundle() bundlePath]];
|
|
|
| BOOL hide = hide_on_startup ? YES : NO;
|
| NSDictionary* properties =
|
|
|