• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
7 namespace policy {
8 
CloudPolicyIdentityStrategy()9 CloudPolicyIdentityStrategy::CloudPolicyIdentityStrategy() {}
10 
~CloudPolicyIdentityStrategy()11 CloudPolicyIdentityStrategy::~CloudPolicyIdentityStrategy() {}
12 
AddObserver(Observer * obs)13 void CloudPolicyIdentityStrategy::AddObserver(Observer* obs) {
14   observer_list_.AddObserver(obs);
15 }
16 
RemoveObserver(Observer * obs)17 void CloudPolicyIdentityStrategy::RemoveObserver(Observer* obs) {
18   observer_list_.RemoveObserver(obs);
19 }
20 
NotifyDeviceTokenChanged()21 void CloudPolicyIdentityStrategy::NotifyDeviceTokenChanged() {
22   FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceTokenChanged());
23 }
24 
NotifyAuthChanged()25 void CloudPolicyIdentityStrategy::NotifyAuthChanged() {
26   FOR_EACH_OBSERVER(Observer, observer_list_, OnCredentialsChanged());
27 }
28 
29 }  // namespace policy
30