Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / passwords / manage_passwords_icon.cc
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 }
10
11 ManagePasswordsIcon::~ManagePasswordsIcon() {
12 }
13
14 void ManagePasswordsIcon::SetState(password_manager::ui::State state) {
15   if (state_ == state)
16     return;
17   state_ = state;
18   UpdateVisibleUI();
19 }