blob: 26f2a011ff481fa00d753f522d14eefc46f5b9ca [file] [log] [blame]
// Copyright 2014 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 "chrome/browser/ui/passwords/manage_passwords_icon.h"
ManagePasswordsIcon::ManagePasswordsIcon()
: state_(password_manager::ui::INACTIVE_STATE),
active_(false) {
}
ManagePasswordsIcon::~ManagePasswordsIcon() {
}
void ManagePasswordsIcon::SetActive(bool active) {
if (active_ == active)
return;
active_ = active;
UpdateVisibleUI();
}
void ManagePasswordsIcon::SetState(password_manager::ui::State state) {
if (state_ == state)
return;
state_ = state;
UpdateVisibleUI();
}