OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser_theme_provider.h" | 5 #include "chrome/browser/browser_theme_provider.h" |
6 | 6 |
7 #include "base/gfx/png_decoder.h" | 7 #include "base/gfx/png_decoder.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 | 751 |
752 void BrowserThemeProvider::ClearCaches() { | 752 void BrowserThemeProvider::ClearCaches() { |
753 FreePlatformCaches(); | 753 FreePlatformCaches(); |
754 for (ImageCache::iterator i = image_cache_.begin(); | 754 for (ImageCache::iterator i = image_cache_.begin(); |
755 i != image_cache_.end(); i++) { | 755 i != image_cache_.end(); i++) { |
756 delete i->second; | 756 delete i->second; |
757 } | 757 } |
758 image_cache_.clear(); | 758 image_cache_.clear(); |
759 } | 759 } |
760 | 760 |
761 #if defined(OS_WIN) | 761 #if defined(TOOLKIT_VIEWS) |
762 void BrowserThemeProvider::FreePlatformCaches() { | 762 void BrowserThemeProvider::FreePlatformCaches() { |
763 // Windows has no platform image cache to clear. | 763 // Views (Skia) has no platform image cache to clear. |
764 } | 764 } |
765 #endif | 765 #endif |
OLD | NEW |