Skip to content

Commit

Permalink
Disable user activity logging if we're under MASH.
Browse files Browse the repository at this point in the history
Bug: 821036
Change-Id: I98e392f3dd60e4148fd04a164e3a9fe5580fe57f
Reviewed-on: https://chromium-review.googlesource.com/961165
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Jia Meng <jiameng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542969}
  • Loading branch information
jm318 authored and Commit Bot committed Mar 14, 2018
1 parent 146d149 commit d443126
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chrome/browser/chromeos/power/ml/user_activity_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "chrome/browser/chromeos/power/ml/user_activity_controller.h"

#include "chrome/browser/chromeos/ash_config.h"
#include "chrome/browser/chromeos/login/users/chrome_user_manager.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/system/devicetype.h"
Expand All @@ -18,7 +19,10 @@ namespace power {
namespace ml {

UserActivityController::UserActivityController() {
if (chromeos::GetDeviceType() != chromeos::DeviceType::kChromebook)
// TODO(jiameng): video detector below doesn't work with MASH. Temporary
// solution is to disable logging if we're under MASH env.
if (chromeos::GetDeviceType() != chromeos::DeviceType::kChromebook ||
chromeos::GetAshConfig() == ash::Config::MASH)
return;

chromeos::PowerManagerClient* power_manager_client =
Expand Down

0 comments on commit d443126

Please sign in to comment.