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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_settings_service.h

Issue 960233003: Handle unsucessful JsonPrefStore initialization in SupervisedUserSettingsService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 9 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 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Sends the settings to all subscribers. This method should be called by the 145 // Sends the settings to all subscribers. This method should be called by the
146 // subclass whenever the settings change. 146 // subclass whenever the settings change.
147 void InformSubscribers(); 147 void InformSubscribers();
148 148
149 // Used for persisting the settings. Unlike other PrefStores, this one is not 149 // Used for persisting the settings. Unlike other PrefStores, this one is not
150 // directly hooked up to the PrefService. 150 // directly hooked up to the PrefService.
151 scoped_refptr<PersistentPrefStore> store_; 151 scoped_refptr<PersistentPrefStore> store_;
152 152
153 bool active_; 153 bool active_;
154 154
155 bool initialization_failed_;
156
155 // A set of local settings that are fixed and not configured remotely. 157 // A set of local settings that are fixed and not configured remotely.
156 scoped_ptr<base::DictionaryValue> local_settings_; 158 scoped_ptr<base::DictionaryValue> local_settings_;
157 159
158 std::vector<SettingsCallback> subscribers_; 160 std::vector<SettingsCallback> subscribers_;
159 161
160 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; 162 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_;
161 scoped_ptr<syncer::SyncErrorFactory> error_handler_; 163 scoped_ptr<syncer::SyncErrorFactory> error_handler_;
162 164
163 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSettingsService); 165 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSettingsService);
164 }; 166 };
165 167
166 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ 168 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698