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