1// Copyright (c) 2011 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/policy/cloud_policy_identity_strategy.h"
6
7namespace policy {
8
9CloudPolicyIdentityStrategy::CloudPolicyIdentityStrategy() {}
10
11CloudPolicyIdentityStrategy::~CloudPolicyIdentityStrategy() {}
12
13void CloudPolicyIdentityStrategy::AddObserver(Observer* obs) {
14  observer_list_.AddObserver(obs);
15}
16
17void CloudPolicyIdentityStrategy::RemoveObserver(Observer* obs) {
18  observer_list_.RemoveObserver(obs);
19}
20
21void CloudPolicyIdentityStrategy::NotifyDeviceTokenChanged() {
22  FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceTokenChanged());
23}
24
25void CloudPolicyIdentityStrategy::NotifyAuthChanged() {
26  FOR_EACH_OBSERVER(Observer, observer_list_, OnCredentialsChanged());
27}
28
29}  // namespace policy
30