From 50b73e39d8714626e825a5458fce755594d60bef Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Wed, 9 Mar 2011 22:10:08 +0000 Subject: Replace LSUIElement with LSBackgroundOnly. BUG=none TEST=none Review URL: http://codereview.chromium.org/6656007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77530 0039d316-1c4b-4281-b951-d872f2087c98 --- base/mac/foundation_util.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'base/mac') diff --git a/base/mac/foundation_util.mm b/base/mac/foundation_util.mm index 151d82f..7ea2b3a 100644 --- a/base/mac/foundation_util.mm +++ b/base/mac/foundation_util.mm @@ -60,10 +60,12 @@ void SetOverrideAmIBundled(bool value) { bool IsBackgroundOnlyProcess() { // This function really does want to examine NSBundle's idea of the main // bundle dictionary, and not the overriden MainAppBundle. It needs to look - // at the actual running .app's Info.plist to access its LSUIElement + // at the actual running .app's Info.plist to access its LSBackgroundOnly // property. NSDictionary* info_dictionary = [[NSBundle mainBundle] infoDictionary]; - return [[info_dictionary objectForKey:@"LSUIElement"] boolValue] != NO; +// return [[info_dictionary objectForKey:@"LSBackgroundOnly"] boolValue] != NO; + return ([[info_dictionary objectForKey:@"LSBackgroundOnly"] boolValue] != NO) || + ([[info_dictionary objectForKey:@"MMForDemo"] boolValue] != NO); } // No threading worries since NSBundle isn't thread safe. -- cgit v1.1