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" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "extensions/browser/extension_prefs.h" | 26 #include "extensions/browser/extension_prefs.h" |
27 #include "extensions/browser/extension_registry.h" | 27 #include "extensions/browser/extension_registry.h" |
28 #include "extensions/browser/extension_system.h" | 28 #include "extensions/browser/extension_system.h" |
29 #include "extensions/browser/uninstall_reason.h" | 29 #include "extensions/browser/uninstall_reason.h" |
30 #include "extensions/common/extension.h" | 30 #include "extensions/common/extension.h" |
31 #include "extensions/common/extension_set.h" | 31 #include "extensions/common/extension_set.h" |
32 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
33 #include "ui/base/layout.h" | 33 #include "ui/base/layout.h" |
34 #include "ui/base/resource/resource_bundle.h" | 34 #include "ui/base/resource/resource_bundle.h" |
35 #include "ui/gfx/image/image_skia.h" | 35 #include "ui/gfx/image/image_skia.h" |
36 #include "ui/resources/grit/ui_resources.h" | |
37 | 36 |
38 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
39 #include "ui/base/win/shell.h" | 38 #include "ui/base/win/shell.h" |
40 #endif | 39 #endif |
41 | 40 |
42 using base::UserMetricsAction; | 41 using base::UserMetricsAction; |
43 using content::BrowserThread; | 42 using content::BrowserThread; |
44 using extensions::Extension; | 43 using extensions::Extension; |
45 using extensions::UnloadedExtensionInfo; | 44 using extensions::UnloadedExtensionInfo; |
46 using ui::ResourceBundle; | 45 using ui::ResourceBundle; |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 void ThemeService::OnInfobarDestroyed() { | 603 void ThemeService::OnInfobarDestroyed() { |
605 number_of_infobars_--; | 604 number_of_infobars_--; |
606 | 605 |
607 if (number_of_infobars_ == 0) | 606 if (number_of_infobars_ == 0) |
608 RemoveUnusedThemes(false); | 607 RemoveUnusedThemes(false); |
609 } | 608 } |
610 | 609 |
611 ThemeSyncableService* ThemeService::GetThemeSyncableService() const { | 610 ThemeSyncableService* ThemeService::GetThemeSyncableService() const { |
612 return theme_syncable_service_.get(); | 611 return theme_syncable_service_.get(); |
613 } | 612 } |
OLD | NEW |