Commit 0776b10e authored by Erik Chen's avatar Erik Chen Committed by Commit Bot

Always enable logging for Lacros.

Change-Id: Ie087134b40d69010ec06c03486b77d7f7907e9d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2373234
Auto-Submit: Erik Chen <erikchen@chromium.org>
Commit-Queue: James Cook <jamescook@chromium.org>
Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801431}
parent 0be8f1c4
...@@ -206,14 +206,9 @@ bool BrowserManager::Start() { ...@@ -206,14 +206,9 @@ bool BrowserManager::Start() {
argv.push_back(flag); argv.push_back(flag);
} }
// We assume that if there's a custom chrome path, that this is a developer // Always enable logging.
// and they want to enable logging. argv.push_back("--enable-logging");
bool custom_chrome_path = base::CommandLine::ForCurrentProcess()->HasSwitch( argv.push_back("--log-file=" + LacrosLogPath().value());
chromeos::switches::kLacrosChromePath);
if (custom_chrome_path) {
argv.push_back("--enable-logging");
argv.push_back("--log-file=" + LacrosLogPath().value());
}
// Set up Mojo channel. // Set up Mojo channel.
base::CommandLine command_line(argv); base::CommandLine command_line(argv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment