OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/themes/theme_service.h" | 5 #include "chrome/browser/themes/theme_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "chrome/browser/chrome_notification_types.h" | 20 #include "chrome/browser/chrome_notification_types.h" |
21 #include "chrome/browser/extensions/extension_service.h" | 21 #include "chrome/browser/extensions/extension_service.h" |
22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/themes/browser_theme_pack.h" | 23 #include "chrome/browser/themes/browser_theme_pack.h" |
24 #include "chrome/browser/themes/custom_theme_supplier.h" | 24 #include "chrome/browser/themes/custom_theme_supplier.h" |
25 #include "chrome/browser/themes/theme_properties.h" | 25 #include "chrome/browser/themes/theme_properties.h" |
26 #include "chrome/browser/themes/theme_service_factory.h" | 26 #include "chrome/browser/themes/theme_service_factory.h" |
27 #include "chrome/browser/themes/theme_syncable_service.h" | 27 #include "chrome/browser/themes/theme_syncable_service.h" |
28 #include "chrome/common/chrome_constants.h" | 28 #include "chrome/common/chrome_constants.h" |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 | 859 |
860 #if defined(ENABLE_SUPERVISED_USERS) | 860 #if defined(ENABLE_SUPERVISED_USERS) |
861 bool ThemeService::IsSupervisedUser() const { | 861 bool ThemeService::IsSupervisedUser() const { |
862 return profile_->IsSupervised(); | 862 return profile_->IsSupervised(); |
863 } | 863 } |
864 | 864 |
865 void ThemeService::SetSupervisedUserTheme() { | 865 void ThemeService::SetSupervisedUserTheme() { |
866 SetCustomDefaultTheme(new SupervisedUserTheme); | 866 SetCustomDefaultTheme(new SupervisedUserTheme); |
867 } | 867 } |
868 #endif | 868 #endif |
OLD | NEW |