// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/browser_watcher/system_session_analyzer_win.h" #include #include #include #include "base/macros.h" #include "base/time/time.h" namespace browser_watcher { 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