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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/extensions/extension_system.h" | 16 #include "chrome/browser/extensions/extension_system.h" |
17 #include "chrome/browser/managed_mode/managed_user_service.h" | 17 #include "chrome/browser/managed_mode/managed_user_service.h" |
18 #include "chrome/browser/managed_mode/managed_user_service_factory.h" | 18 #include "chrome/browser/managed_mode/managed_user_service_factory.h" |
19 #include "chrome/browser/managed_mode/managed_user_theme.h" | 19 #include "chrome/browser/managed_mode/managed_user_theme.h" |
20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/themes/browser_theme_pack.h" | 21 #include "chrome/browser/themes/browser_theme_pack.h" |
22 #include "chrome/browser/themes/custom_theme_supplier.h" | 22 #include "chrome/browser/themes/custom_theme_supplier.h" |
23 #include "chrome/browser/themes/theme_properties.h" | 23 #include "chrome/browser/themes/theme_properties.h" |
24 #include "chrome/browser/themes/theme_syncable_service.h" | 24 #include "chrome/browser/themes/theme_syncable_service.h" |
25 #include "chrome/common/chrome_constants.h" | 25 #include "chrome/common/chrome_constants.h" |
26 #include "chrome/common/extensions/extension_manifest_constants.h" | |
27 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
28 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
29 #include "content/public/browser/user_metrics.h" | 28 #include "content/public/browser/user_metrics.h" |
30 #include "grit/theme_resources.h" | 29 #include "grit/theme_resources.h" |
31 #include "grit/ui_resources.h" | 30 #include "grit/ui_resources.h" |
32 #include "ui/base/layout.h" | 31 #include "ui/base/layout.h" |
33 #include "ui/base/resource/resource_bundle.h" | 32 #include "ui/base/resource/resource_bundle.h" |
34 #include "ui/gfx/image/image_skia.h" | 33 #include "ui/gfx/image/image_skia.h" |
35 | 34 |
36 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 void ThemeService::OnInfobarDestroyed() { | 604 void ThemeService::OnInfobarDestroyed() { |
606 number_of_infobars_--; | 605 number_of_infobars_--; |
607 | 606 |
608 if (number_of_infobars_ == 0) | 607 if (number_of_infobars_ == 0) |
609 RemoveUnusedThemes(false); | 608 RemoveUnusedThemes(false); |
610 } | 609 } |
611 | 610 |
612 ThemeSyncableService* ThemeService::GetThemeSyncableService() const { | 611 ThemeSyncableService* ThemeService::GetThemeSyncableService() const { |
613 return theme_syncable_service_.get(); | 612 return theme_syncable_service_.get(); |
614 } | 613 } |
OLD | NEW |