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_notifier.h" | 5 #include "chrome/browser/prefs/pref_notifier.h" |
6 | 6 |
7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util-inl.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 9 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
10 #include "chrome/browser/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
11 #include "chrome/browser/pref_value_store.h" | 11 #include "chrome/browser/prefs/pref_value_store.h" |
12 #include "chrome/common/notification_service.h" | 12 #include "chrome/common/notification_service.h" |
13 | 13 |
14 | 14 |
15 PrefNotifier::PrefNotifier(PrefService* service, PrefValueStore* value_store) | 15 PrefNotifier::PrefNotifier(PrefService* service, PrefValueStore* value_store) |
16 : pref_service_(service), | 16 : pref_service_(service), |
17 pref_value_store_(value_store) { | 17 pref_value_store_(value_store) { |
18 registrar_.Add(this, | 18 registrar_.Add(this, |
19 NotificationType(NotificationType::POLICY_CHANGED), | 19 NotificationType(NotificationType::POLICY_CHANGED), |
20 NotificationService::AllSources()); | 20 NotificationService::AllSources()); |
21 } | 21 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 ChromeThread::UI, FROM_HERE, | 131 ChromeThread::UI, FROM_HERE, |
132 NewRunnableMethod( | 132 NewRunnableMethod( |
133 pref_value_store_, | 133 pref_value_store_, |
134 &PrefValueStore::RefreshPolicyPrefs, | 134 &PrefValueStore::RefreshPolicyPrefs, |
135 ConfigurationPolicyPrefStore::CreateManagedPolicyPrefStore(), | 135 ConfigurationPolicyPrefStore::CreateManagedPolicyPrefStore(), |
136 ConfigurationPolicyPrefStore::CreateRecommendedPolicyPrefStore(), | 136 ConfigurationPolicyPrefStore::CreateRecommendedPolicyPrefStore(), |
137 | 137 |
138 callback)); | 138 callback)); |
139 } | 139 } |
140 } | 140 } |
OLD | NEW |