1 // Copyright 2014 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 5 #include "chrome/browser/ui/passwords/manage_passwords_icon.h" 6 7 ManagePasswordsIcon::ManagePasswordsIcon() 8 : state_(password_manager::ui::INACTIVE_STATE), 9 active_(false) { 10 } 11 12 ManagePasswordsIcon::~ManagePasswordsIcon() { 13 } 14 15 void ManagePasswordsIcon::SetActive(bool active) { 16 if (active_ == active) 17 return; 18 active_ = active; 19 UpdateVisibleUI(); 20 } 21 22 void ManagePasswordsIcon::SetState(password_manager::ui::State state) { 23 if (state_ == state) 24 return; 25 state_ = state; 26 UpdateVisibleUI(); 27 } 28