user_metrics_recorder_test_api.cc 686 B

12345678910111213141516171819202122
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ash/metrics/user_metrics_recorder_test_api.h"
  5. namespace ash {
  6. UserMetricsRecorderTestAPI::UserMetricsRecorderTestAPI()
  7. : user_metrics_recorder_(false) {}
  8. UserMetricsRecorderTestAPI::~UserMetricsRecorderTestAPI() = default;
  9. void UserMetricsRecorderTestAPI::RecordPeriodicMetrics() {
  10. user_metrics_recorder_.RecordPeriodicMetrics();
  11. }
  12. bool UserMetricsRecorderTestAPI::IsUserInActiveDesktopEnvironment() const {
  13. return user_metrics_recorder_.IsUserInActiveDesktopEnvironment();
  14. }
  15. } // namespace ash