From adf9eea7f5dff8522bf4bdee064e696911d725f8 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Tue, 26 Apr 2011 15:39:55 +0000 Subject: Move one more bit of early startup initialization to a function that has its own NSAutoreleasePool. This closes a minor theoretical leak, but probably has no practical impact. Setting the bundle override now happens before setting the base bundle ID, because technically the base bundle ID depends on the bundle override via its dependency on the versioned directory. Don't worry, it's not really important. BUG=none TEST=none Review URL: http://codereview.chromium.org/6902009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83017 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/chrome_main.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'chrome/app/chrome_main.h') diff --git a/chrome/app/chrome_main.h b/chrome/app/chrome_main.h index 0ecf06a..518cb7a 100644 --- a/chrome/app/chrome_main.h +++ b/chrome/app/chrome_main.h @@ -32,10 +32,12 @@ void LowLevelShutdown(); void CheckUserDataDirPolicy(FilePath* user_data_dir); #if defined(OS_MACOSX) -// Sets the base bundle ID to the proper value based on the running -// application. The base bundle ID is the outer browser application's bundle -// ID even when running in a non-browser (helper) process. -void SetUpBaseBundleID(); +// Sets the app bundle (base::mac::MainAppBundle()) to the framework's bundle, +// and sets the base bundle ID (base::mac::BaseBundleID()) to the proper value +// based on the running application. The base bundle ID is the outer browser +// application's bundle ID even when running in a non-browser (helper) +// process. +void SetUpBundleOverrides(); #endif } // namespace chrome_main -- cgit v1.1