| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
| 24 #include "chrome/browser/themes/browser_theme_pack.h" | 24 #include "chrome/browser/themes/browser_theme_pack.h" |
| 25 #include "chrome/browser/themes/custom_theme_supplier.h" | 25 #include "chrome/browser/themes/custom_theme_supplier.h" |
| 26 #include "chrome/browser/themes/theme_properties.h" | 26 #include "chrome/browser/themes/theme_properties.h" |
| 27 #include "chrome/browser/themes/theme_service_factory.h" | 27 #include "chrome/browser/themes/theme_service_factory.h" |
| 28 #include "chrome/browser/themes/theme_syncable_service.h" | 28 #include "chrome/browser/themes/theme_syncable_service.h" |
| 29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
| 30 #include "chrome/common/features.h" | 30 #include "chrome/common/features.h" |
| 31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
| 32 #include "chrome/grit/theme_resources.h" | 32 #include "chrome/grit/theme_resources.h" |
| 33 #include "components/grit/components_scaled_resources.h" | |
| 34 #include "components/prefs/pref_service.h" | 33 #include "components/prefs/pref_service.h" |
| 35 #include "content/public/browser/notification_service.h" | 34 #include "content/public/browser/notification_service.h" |
| 36 #include "content/public/browser/user_metrics.h" | 35 #include "content/public/browser/user_metrics.h" |
| 37 #include "extensions/browser/extension_prefs.h" | 36 #include "extensions/browser/extension_prefs.h" |
| 38 #include "extensions/browser/extension_registry.h" | 37 #include "extensions/browser/extension_registry.h" |
| 39 #include "extensions/browser/extension_system.h" | 38 #include "extensions/browser/extension_system.h" |
| 40 #include "extensions/browser/uninstall_reason.h" | 39 #include "extensions/browser/uninstall_reason.h" |
| 41 #include "extensions/common/extension.h" | 40 #include "extensions/common/extension.h" |
| 42 #include "extensions/common/extension_set.h" | 41 #include "extensions/common/extension_set.h" |
| 43 #include "extensions/features/features.h" | 42 #include "extensions/features/features.h" |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 | 868 |
| 870 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 869 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 871 bool ThemeService::IsSupervisedUser() const { | 870 bool ThemeService::IsSupervisedUser() const { |
| 872 return profile_->IsSupervised(); | 871 return profile_->IsSupervised(); |
| 873 } | 872 } |
| 874 | 873 |
| 875 void ThemeService::SetSupervisedUserTheme() { | 874 void ThemeService::SetSupervisedUserTheme() { |
| 876 SetCustomDefaultTheme(new SupervisedUserTheme); | 875 SetCustomDefaultTheme(new SupervisedUserTheme); |
| 877 } | 876 } |
| 878 #endif | 877 #endif |
| OLD | NEW |