blob: a9bd5f4f117fcdb5d8ea5e8095e9e7929f98dac7 [file] [log] [blame]
// Copyright 2018 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/unified/sign_out_button.h"
#include "ash/session/session_controller_impl.h"
#include "ash/shell.h"
#include "ash/system/user/login_status.h"
namespace ash {
SignOutButton::SignOutButton(views::ButtonListener* listener)
: RoundedLabelButton(listener,
user::GetLocalizedSignOutStringForStatus(
Shell::Get()->session_controller()->login_status(),
false /* multiline */)) {}
SignOutButton::~SignOutButton() = default;
const char* SignOutButton::GetClassName() const {
return "SignOutButton";
}
} // namespace ash