OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/pref_set_observer.h" | 5 #include "chrome/browser/prefs/pref_set_observer.h" |
6 | 6 |
7 #include "chrome/common/notification_type.h" | 7 #include "chrome/common/notification_type.h" |
8 #include "chrome/common/pref_names.h" | 8 #include "chrome/common/pref_names.h" |
9 | 9 |
10 PrefSetObserver::PrefSetObserver(PrefService* pref_service, | 10 PrefSetObserver::PrefSetObserver(PrefService* pref_service, |
11 NotificationObserver* observer) | 11 NotificationObserver* observer) |
12 : pref_service_(pref_service), | 12 : pref_service_(pref_service), |
13 observer_(observer) { | 13 observer_(observer) { |
14 } | 14 } |
15 | 15 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 return pref_set; | 58 return pref_set; |
59 } | 59 } |
60 | 60 |
61 void PrefSetObserver::Observe(NotificationType type, | 61 void PrefSetObserver::Observe(NotificationType type, |
62 const NotificationSource& source, | 62 const NotificationSource& source, |
63 const NotificationDetails& details) { | 63 const NotificationDetails& details) { |
64 if (observer_) | 64 if (observer_) |
65 observer_->Observe(type, source, details); | 65 observer_->Observe(type, source, details); |
66 } | 66 } |
OLD | NEW |