diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-09 22:10:08 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-09 22:10:08 +0000 |
commit | 50b73e39d8714626e825a5458fce755594d60bef (patch) | |
tree | e2cf036f7d133dc875c0cde7ac54514f48c7b8d6 /base/mac | |
parent | bf8651a56e49a121373046d0cd38b19051d1bb0a (diff) | |
download | chromium_src-50b73e39d8714626e825a5458fce755594d60bef.zip chromium_src-50b73e39d8714626e825a5458fce755594d60bef.tar.gz chromium_src-50b73e39d8714626e825a5458fce755594d60bef.tar.bz2 |
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
Diffstat (limited to 'base/mac')
-rw-r--r-- | base/mac/foundation_util.mm | 6 |
1 files changed, 4 insertions, 2 deletions
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. |