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 50c74d2b42d42e082bd411bf22f2559cdaad3c85..ee6e25773025ed65d91c24a490e5e07160e2e225 100644 |
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc |
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc |
@@ -109,6 +109,7 @@ |
#include "chromeos/network/network_handler.h" |
#include "chromeos/system/statistics_provider.h" |
#include "chromeos/tpm/tpm_token_loader.h" |
+#include "components/device_event_log/device_event_log.h" |
#include "components/metrics/metrics_service.h" |
#include "components/ownership/owner_key_util.h" |
#include "components/session_manager/core/session_manager.h" |
@@ -310,6 +311,9 @@ void ChromeBrowserMainPartsChromeos::PreMainMessageLoopStart() { |
} |
void ChromeBrowserMainPartsChromeos::PostMainMessageLoopStart() { |
+ // device_event_log must be initialized after the message loop. |
+ device_event_log::Initialize(0 /* default max entries */); |
+ |
base::FilePath user_data_dir; |
if (!base::SysInfo::IsRunningOnChromeOS() && |
PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) { |