// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/metrics/system_session_analyzer/system_session_analyzer_win.h" #include "base/logging.h" #include "base/time/time.h" namespace metrics { namespace { // The name of the log channel to query. const wchar_t kChannelName[] = L"System"; // Event ids of system startup / shutdown events. These were obtained from // inspection of the System log in Event Viewer on Windows 10: // - id 6005: "The Event log service was started." // - id 6006: "The Event log service was stopped." // - id 6008: "The previous system shutdown at