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_settings_service.h" | 5 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
13 #include "base/prefs/json_pref_store.h" | |
14 #include "base/prefs/pref_filter.h" | |
15 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
16 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
17 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" | 15 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" |
18 #include "chrome/common/chrome_constants.h" | 16 #include "chrome/common/chrome_constants.h" |
| 17 #include "components/prefs/json_pref_store.h" |
| 18 #include "components/prefs/pref_filter.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/user_metrics.h" | 20 #include "content/public/browser/user_metrics.h" |
21 #include "sync/api/sync_change.h" | 21 #include "sync/api/sync_change.h" |
22 #include "sync/api/sync_error_factory.h" | 22 #include "sync/api/sync_error_factory.h" |
23 #include "sync/protocol/sync.pb.h" | 23 #include "sync/protocol/sync.pb.h" |
24 | 24 |
25 using base::DictionaryValue; | 25 using base::DictionaryValue; |
26 using base::JSONReader; | 26 using base::JSONReader; |
27 using base::UserMetricsAction; | 27 using base::UserMetricsAction; |
28 using base::Value; | 28 using base::Value; |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 return settings; | 410 return settings; |
411 } | 411 } |
412 | 412 |
413 void SupervisedUserSettingsService::InformSubscribers() { | 413 void SupervisedUserSettingsService::InformSubscribers() { |
414 if (!IsReady()) | 414 if (!IsReady()) |
415 return; | 415 return; |
416 | 416 |
417 scoped_ptr<base::DictionaryValue> settings = GetSettings(); | 417 scoped_ptr<base::DictionaryValue> settings = GetSettings(); |
418 callback_list_.Notify(settings.get()); | 418 callback_list_.Notify(settings.get()); |
419 } | 419 } |
OLD | NEW |