Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc |
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc |
index 37b08997f28986e3975e0fd376879d3643a49ee8..b2f7b38ecd83ad50e6bc6617ec6dd3bff412fe9a 100644 |
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc |
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc |
@@ -237,6 +237,10 @@ void OptionallyRunChromeOSLoginManager(const CommandLine& parsed_command_line, |
parsed_command_line.GetSwitchValueASCII(switches::kLoginPassword)); |
} else { |
if (!parsed_command_line.HasSwitch(::switches::kTestName)) { |
+ // Enable CrasAudioHandler logging when chrome restarts after crashing. |
+ if (chromeos::CrasAudioHandler::IsInitialized()) |
+ chromeos::CrasAudioHandler::Get()->EnableLog(); |
+ |
// We did not log in (we crashed or are debugging), so we need to |
// restore Sync. |
LoginUtils::Get()->RestoreAuthenticationSession(profile); |