Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Side by Side Diff: chrome/browser/themes/theme_service.cc

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/string_split.h" 9 #include "base/string_split.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/themes/browser_theme_pack.h" 15 #include "chrome/browser/themes/browser_theme_pack.h"
16 #include "chrome/common/chrome_constants.h" 16 #include "chrome/common/chrome_constants.h"
17 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "content/public/browser/notification_service.h" 19 #include "content/public/browser/notification_service.h"
20 #include "content/public/browser/user_metrics.h" 20 #include "content/public/browser/user_metrics.h"
21 #include "grit/theme_resources.h" 21 #include "grit/theme_resources.h"
22 #include "grit/theme_resources_standard.h"
23 #include "grit/ui_resources.h" 22 #include "grit/ui_resources.h"
24 #include "grit/ui_resources_standard.h"
25 #include "ui/base/layout.h" 23 #include "ui/base/layout.h"
26 #include "ui/base/resource/resource_bundle.h" 24 #include "ui/base/resource/resource_bundle.h"
27 #include "ui/gfx/image/image_skia.h" 25 #include "ui/gfx/image/image_skia.h"
28 26
29 #if defined(OS_WIN) && !defined(USE_AURA) 27 #if defined(OS_WIN) && !defined(USE_AURA)
30 #include "ui/views/widget/native_widget_win.h" 28 #include "ui/views/widget/native_widget_win.h"
31 #endif 29 #endif
32 30
33 #if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX) 31 #if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX)
34 #include "ui/base/linux_ui.h" 32 #include "ui/base/linux_ui.h"
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 void ThemeService::OnInfobarDisplayed() { 711 void ThemeService::OnInfobarDisplayed() {
714 number_of_infobars_++; 712 number_of_infobars_++;
715 } 713 }
716 714
717 void ThemeService::OnInfobarDestroyed() { 715 void ThemeService::OnInfobarDestroyed() {
718 number_of_infobars_--; 716 number_of_infobars_--;
719 717
720 if (number_of_infobars_ == 0) 718 if (number_of_infobars_ == 0)
721 RemoveUnusedThemes(); 719 RemoveUnusedThemes();
722 } 720 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/browser_theme_pack_unittest.cc ('k') | chrome/browser/translate/translate_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698