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> |
| 8 |
7 #include "base/callback.h" | 9 #include "base/callback.h" |
8 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
9 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
10 #include "base/prefs/json_pref_store.h" | 12 #include "base/prefs/json_pref_store.h" |
11 #include "base/prefs/pref_filter.h" | 13 #include "base/prefs/pref_filter.h" |
12 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
14 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" | 16 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" |
15 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
16 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 return settings.Pass(); | 409 return settings.Pass(); |
408 } | 410 } |
409 | 411 |
410 void SupervisedUserSettingsService::InformSubscribers() { | 412 void SupervisedUserSettingsService::InformSubscribers() { |
411 if (!IsReady()) | 413 if (!IsReady()) |
412 return; | 414 return; |
413 | 415 |
414 scoped_ptr<base::DictionaryValue> settings = GetSettings(); | 416 scoped_ptr<base::DictionaryValue> settings = GetSettings(); |
415 callback_list_.Notify(settings.get()); | 417 callback_list_.Notify(settings.get()); |
416 } | 418 } |
OLD | NEW |