diff --git a/shell/common/switches.h b/shell/common/switches.h index 4ced30821c82a9c14dcb08dd913d7c0b36bda889..8913dbb54719b293a92919b171b8e1f8e5cfeded 100644 --- a/shell/common/switches.h +++ b/shell/common/switches.h @@ -62,11 +62,6 @@ DEF_SWITCH(NonInteractive, "non-interactive", "Make the shell non-interactive. By default, the shell attempts " "to setup a window and create an OpenGL context.") -DEF_SWITCH(NoRedirectToSyslog, - "no-redirect-to-syslog", - "On iOS: Don't redirect stdout and stderr to syslog by default. " - "This is used by the tools to read device logs. However, this can " - "cause logs to not show up when launched from Xcode.") DEF_SWITCH(Packages, "packages", "Specify the path to the packages.") DEF_SWITCH(StartPaused, "start-paused", diff --git a/shell/platform/darwin/common/platform_mac.mm b/shell/platform/darwin/common/platform_mac.mm index e929a73a3e9abb8995e17cf09baed477e6671ea0..ce4420a78ea224cfc9edf8731b6ff4e7ac3fd27c 100644 --- a/shell/platform/darwin/common/platform_mac.mm +++ b/shell/platform/darwin/common/platform_mac.mm @@ -36,20 +36,6 @@ static void InitializeLogging() { false); // Tick count } -static void RedirectIOConnectionsToSyslog() { -#if TARGET_OS_IPHONE - if (base::CommandLine::ForCurrentProcess()->HasSwitch( - FlagForSwitch(Switch::NoRedirectToSyslog))) { - return; - } - - asl_log_descriptor(NULL, NULL, ASL_LEVEL_INFO, STDOUT_FILENO, - ASL_LOG_DESCRIPTOR_WRITE); - asl_log_descriptor(NULL, NULL, ASL_LEVEL_NOTICE, STDERR_FILENO, - ASL_LOG_DESCRIPTOR_WRITE); -#endif -} - static void InitializeCommandLine() { base::mac::ScopedNSAutoreleasePool pool; base::CommandLine::StringVector vector; @@ -77,8 +63,6 @@ class EmbedderState { InitializeCommandLine(); - RedirectIOConnectionsToSyslog(); - InitializeLogging(); base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess();