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

Unified Diff: ui/base/theme_provider.h

Issue 9460039: ui/base: Remove the dependency in Profile from ThemeProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/download/background_theme.h ('k') | ui/views/widget/default_theme_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/theme_provider.h
diff --git a/ui/base/theme_provider.h b/ui/base/theme_provider.h
index a6a5dd97a82ed4506b2f7e14b18a029e0177703c..1a5c998015dedfd76ba79555abcbd9d334ef2d95 100644
--- a/ui/base/theme_provider.h
+++ b/ui/base/theme_provider.h
@@ -25,7 +25,6 @@ typedef struct _GdkColor GdkColor;
typedef struct _GdkPixbuf GdkPixbuf;
#endif // OS_*
-class Profile;
class RefCountedMemory;
class SkBitmap;
@@ -44,10 +43,6 @@ class UI_EXPORT ThemeProvider {
public:
virtual ~ThemeProvider();
- // TODO(beng): This dependency is horrible!
- // Initialize the provider with the passed in profile.
- virtual void Init(Profile* profile) = 0;
-
// Get the bitmap specified by |id|. An implementation of ThemeProvider should
// have its own source of ids (e.g. an enum, or external resource bundle).
virtual SkBitmap* GetBitmapNamed(int id) const = 0;
« no previous file with comments | « chrome/browser/ui/cocoa/download/background_theme.h ('k') | ui/views/widget/default_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698