OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/supervised_user/supervised_user_pref_store.h" | 5 #include "chrome/browser/supervised_user/supervised_user_pref_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 struct SupervisedUserSettingsPrefMappingEntry { | 28 struct SupervisedUserSettingsPrefMappingEntry { |
29 const char* settings_name; | 29 const char* settings_name; |
30 const char* pref_name; | 30 const char* pref_name; |
31 }; | 31 }; |
32 | 32 |
33 SupervisedUserSettingsPrefMappingEntry kSupervisedUserSettingsPrefMapping[] = { | 33 SupervisedUserSettingsPrefMappingEntry kSupervisedUserSettingsPrefMapping[] = { |
34 { | 34 { |
| 35 supervised_users::kApprovedExtensions, |
| 36 prefs::kSupervisedUserApprovedExtensions, |
| 37 }, |
| 38 { |
35 supervised_users::kContentPackDefaultFilteringBehavior, | 39 supervised_users::kContentPackDefaultFilteringBehavior, |
36 prefs::kDefaultSupervisedUserFilteringBehavior, | 40 prefs::kDefaultSupervisedUserFilteringBehavior, |
37 }, | 41 }, |
38 { | 42 { |
39 supervised_users::kContentPackManualBehaviorHosts, | 43 supervised_users::kContentPackManualBehaviorHosts, |
40 prefs::kSupervisedUserManualHosts, | 44 prefs::kSupervisedUserManualHosts, |
41 }, | 45 }, |
42 { | 46 { |
43 supervised_users::kContentPackManualBehaviorURLs, | 47 supervised_users::kContentPackManualBehaviorURLs, |
44 prefs::kSupervisedUserManualURLs, | 48 prefs::kSupervisedUserManualURLs, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 } | 170 } |
167 | 171 |
168 // Callback to unsubscribe from the supervised user settings service. | 172 // Callback to unsubscribe from the supervised user settings service. |
169 void SupervisedUserPrefStore::Observe( | 173 void SupervisedUserPrefStore::Observe( |
170 int type, | 174 int type, |
171 const content::NotificationSource& src, | 175 const content::NotificationSource& src, |
172 const content::NotificationDetails& details) { | 176 const content::NotificationDetails& details) { |
173 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); | 177 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); |
174 user_settings_subscription_.reset(); | 178 user_settings_subscription_.reset(); |
175 } | 179 } |
OLD | NEW |