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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_pref_store.cc

Issue 2004043002: Supervised Users Initiated Installs v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kid_initiated_install
Patch Set: minor Created 4 years, 7 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698