Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: chrome/browser/policy/cloud_policy_identity_strategy.cc

Issue 7298012: Consolidate data storage and notifications in the cloud policy subsystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_identity_strategy.h ('k') | chrome/browser/policy/cloud_policy_subsystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698