summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/cloud_policy_identity_strategy.cc
blob: 6aa80bb736b1e5127aad9ef3033f041c0d6e420c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2011 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/policy/cloud_policy_identity_strategy.h"

namespace policy {

CloudPolicyIdentityStrategy::CloudPolicyIdentityStrategy() {}

CloudPolicyIdentityStrategy::~CloudPolicyIdentityStrategy() {}

void CloudPolicyIdentityStrategy::AddObserver(Observer* obs) {
  observer_list_.AddObserver(obs);
}

void CloudPolicyIdentityStrategy::RemoveObserver(Observer* obs) {
  observer_list_.RemoveObserver(obs);
}

void CloudPolicyIdentityStrategy::NotifyDeviceTokenChanged() {
  FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceTokenChanged());
}

void CloudPolicyIdentityStrategy::NotifyAuthChanged() {
  FOR_EACH_OBSERVER(Observer, observer_list_, OnCredentialsChanged());
}

}  // namespace policy