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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
« no previous file with comments | « chrome/browser/themes/theme_service.h ('k') | chrome/browser/themes/theme_service_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 12 matching lines...) Expand all
23 #include "grit/ui_resources.h" 23 #include "grit/ui_resources.h"
24 #include "ui/base/resource/resource_bundle.h" 24 #include "ui/base/resource/resource_bundle.h"
25 #include "ui/gfx/image/image_skia.h" 25 #include "ui/gfx/image/image_skia.h"
26 26
27 #if defined(OS_WIN) && !defined(USE_AURA) 27 #if defined(OS_WIN) && !defined(USE_AURA)
28 #include "ui/views/widget/native_widget_win.h" 28 #include "ui/views/widget/native_widget_win.h"
29 #endif 29 #endif
30 30
31 using content::BrowserThread; 31 using content::BrowserThread;
32 using content::UserMetricsAction; 32 using content::UserMetricsAction;
33 using extensions::Extension;
33 using ui::ResourceBundle; 34 using ui::ResourceBundle;
34 35
35 // Strings used in alignment properties. 36 // Strings used in alignment properties.
36 const char* ThemeService::kAlignmentCenter = "center"; 37 const char* ThemeService::kAlignmentCenter = "center";
37 const char* ThemeService::kAlignmentTop = "top"; 38 const char* ThemeService::kAlignmentTop = "top";
38 const char* ThemeService::kAlignmentBottom = "bottom"; 39 const char* ThemeService::kAlignmentBottom = "bottom";
39 const char* ThemeService::kAlignmentLeft = "left"; 40 const char* ThemeService::kAlignmentLeft = "left";
40 const char* ThemeService::kAlignmentRight = "right"; 41 const char* ThemeService::kAlignmentRight = "right";
41 42
42 // Strings used in background tiling repetition properties. 43 // Strings used in background tiling repetition properties.
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 void ThemeService::OnInfobarDisplayed() { 681 void ThemeService::OnInfobarDisplayed() {
681 number_of_infobars_++; 682 number_of_infobars_++;
682 } 683 }
683 684
684 void ThemeService::OnInfobarDestroyed() { 685 void ThemeService::OnInfobarDestroyed() {
685 number_of_infobars_--; 686 number_of_infobars_--;
686 687
687 if (number_of_infobars_ == 0) 688 if (number_of_infobars_ == 0)
688 RemoveUnusedThemes(); 689 RemoveUnusedThemes();
689 } 690 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_service.h ('k') | chrome/browser/themes/theme_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698