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::kContentPackApprovedExtensions, |
| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 } | 172 } |
169 | 173 |
170 // Callback to unsubscribe from the supervised user settings service. | 174 // Callback to unsubscribe from the supervised user settings service. |
171 void SupervisedUserPrefStore::Observe( | 175 void SupervisedUserPrefStore::Observe( |
172 int type, | 176 int type, |
173 const content::NotificationSource& src, | 177 const content::NotificationSource& src, |
174 const content::NotificationDetails& details) { | 178 const content::NotificationDetails& details) { |
175 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); | 179 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); |
176 user_settings_subscription_.reset(); | 180 user_settings_subscription_.reset(); |
177 } | 181 } |
OLD | NEW |