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 "ash/system/user/user_accounts_delegate.h" 6 7 namespace ash { 8 namespace tray { 9 UserAccountsDelegate()10UserAccountsDelegate::UserAccountsDelegate() {} 11 ~UserAccountsDelegate()12UserAccountsDelegate::~UserAccountsDelegate() {} 13 AddObserver(Observer * observer)14void UserAccountsDelegate::AddObserver(Observer* observer) { 15 observers_.AddObserver(observer); 16 } 17 RemoveObserver(Observer * observer)18void UserAccountsDelegate::RemoveObserver(Observer* observer) { 19 observers_.RemoveObserver(observer); 20 } 21 NotifyAccountListChanged()22void UserAccountsDelegate::NotifyAccountListChanged() { 23 FOR_EACH_OBSERVER(Observer, observers_, AccountListChanged()); 24 } 25 26 } // namespace tray 27 } // namespace ash 28