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

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

Issue 256943003: SupervisedUserPrefStore: Add pref mapping. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/managed_mode/supervised_user_pref_store.h" 5 #include "chrome/browser/managed_mode/supervised_user_pref_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_value_map.h" 8 #include "base/prefs/pref_value_map.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/managed_mode/managed_mode_url_filter.h" 10 #include "chrome/browser/managed_mode/managed_mode_url_filter.h"
(...skipping 22 matching lines...) Expand all
33 }, 33 },
34 { 34 {
35 managed_users::kContentPackManualBehaviorURLs, 35 managed_users::kContentPackManualBehaviorURLs,
36 prefs::kManagedModeManualURLs, 36 prefs::kManagedModeManualURLs,
37 }, 37 },
38 { 38 {
39 managed_users::kForceSafeSearch, 39 managed_users::kForceSafeSearch,
40 prefs::kForceSafeSearch, 40 prefs::kForceSafeSearch,
41 }, 41 },
42 { 42 {
43 managed_users::kSigninAllowed,
Bernhard Bauer 2014/04/28 09:56:40 Do you need to declare this somewhere?
44 prefs::kSigninAllowed,
45 },
46 {
43 managed_users::kUserName, 47 managed_users::kUserName,
44 prefs::kProfileName, 48 prefs::kProfileName,
45 }, 49 },
46 }; 50 };
47 51
48 } // namespace 52 } // namespace
49 53
50 SupervisedUserPrefStore::SupervisedUserPrefStore( 54 SupervisedUserPrefStore::SupervisedUserPrefStore(
51 ManagedUserSettingsService* managed_user_settings_service) 55 ManagedUserSettingsService* managed_user_settings_service)
52 : weak_ptr_factory_(this) { 56 : weak_ptr_factory_(this) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 std::vector<std::string> changed_prefs; 118 std::vector<std::string> changed_prefs;
115 prefs_->GetDifferingKeys(old_prefs.get(), &changed_prefs); 119 prefs_->GetDifferingKeys(old_prefs.get(), &changed_prefs);
116 120
117 // Send out change notifications. 121 // Send out change notifications.
118 for (std::vector<std::string>::const_iterator pref(changed_prefs.begin()); 122 for (std::vector<std::string>::const_iterator pref(changed_prefs.begin());
119 pref != changed_prefs.end(); 123 pref != changed_prefs.end();
120 ++pref) { 124 ++pref) {
121 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(*pref)); 125 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(*pref));
122 } 126 }
123 } 127 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698