summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/mac_util.mm3
-rw-r--r--chrome/app/breakpad_mac.mm2
2 files changed, 2 insertions, 3 deletions
diff --git a/base/mac_util.mm b/base/mac_util.mm
index b2e9b6e..dcfb6470 100644
--- a/base/mac_util.mm
+++ b/base/mac_util.mm
@@ -46,8 +46,7 @@ bool AmIBundled() {
bool IsBackgroundOnlyProcess() {
NSBundle* main_bundle = MainAppBundle();
NSDictionary* info_dictionary = [main_bundle infoDictionary];
- return [[info_dictionary objectForKey:@"LSUIElement"]
- isEqualToString:@"1"] ? true : false;
+ return [[info_dictionary objectForKey:@"LSUIElement"] boolValue] != NO;
}
// No threading worries since NSBundle isn't thread safe.
diff --git a/chrome/app/breakpad_mac.mm b/chrome/app/breakpad_mac.mm
index d295d43..11d9c00 100644
--- a/chrome/app/breakpad_mac.mm
+++ b/chrome/app/breakpad_mac.mm
@@ -53,7 +53,7 @@ void InitCrashReporter() {
CommandLine::ForCurrentProcess()->
HasSwitch(switches::kEnableCrashReporter);
- if (parsed_command_line.HasSwitch(switches::kDisableBreakpad)) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableBreakpad)) {
enable_breakpad = false;
}