blob: 34c8ee211a52e67b63e174b061233df6e3582753 [file] [log] [blame]
// 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 "ash/system/power/scoped_backlights_forced_off.h"
#include <utility>
namespace ash {
ScopedBacklightsForcedOff::ScopedBacklightsForcedOff(
base::OnceClosure unregister_callback)
: unregister_callback_(std::move(unregister_callback)) {}
ScopedBacklightsForcedOff::~ScopedBacklightsForcedOff() {
if (unregister_callback_)
std::move(unregister_callback_).Run();
}
} // namespace ash