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_service.h" | 5 #include "chrome/browser/supervised_user/supervised_user_service.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/task_runner_util.h" | 17 #include "base/task_runner_util.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" |
18 #include "base/version.h" | 19 #include "base/version.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h
" | 22 #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h
" |
22 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/profiles/profile_attributes_entry.h" | 24 #include "chrome/browser/profiles/profile_attributes_entry.h" |
24 #include "chrome/browser/profiles/profile_attributes_storage.h" | 25 #include "chrome/browser/profiles/profile_attributes_storage.h" |
25 #include "chrome/browser/profiles/profile_manager.h" | 26 #include "chrome/browser/profiles/profile_manager.h" |
26 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 27 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
27 #include "chrome/browser/signin/signin_manager_factory.h" | 28 #include "chrome/browser/signin/signin_manager_factory.h" |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 content::RecordAction(UserMetricsAction("ManagedUsers_SwitchProfile")); | 1279 content::RecordAction(UserMetricsAction("ManagedUsers_SwitchProfile")); |
1279 | 1280 |
1280 is_profile_active_ = profile_became_active; | 1281 is_profile_active_ = profile_became_active; |
1281 } | 1282 } |
1282 #endif // !defined(OS_ANDROID) | 1283 #endif // !defined(OS_ANDROID) |
1283 | 1284 |
1284 void SupervisedUserService::OnSiteListUpdated() { | 1285 void SupervisedUserService::OnSiteListUpdated() { |
1285 for (SupervisedUserServiceObserver& observer : observer_list_) | 1286 for (SupervisedUserServiceObserver& observer : observer_list_) |
1286 observer.OnURLFilterChanged(); | 1287 observer.OnURLFilterChanged(); |
1287 } | 1288 } |
OLD | NEW |