From 1c2b7b515d5e0304101cdac212d37bf5a554a38e Mon Sep 17 00:00:00 2001 From: "avi@chromium.org" Date: Fri, 26 Feb 2010 22:41:00 +0000 Subject: Finishing removal of GTMTheme. All incognito drawing is now correct, themed or not. BUG=http://crbug.com/35554 ; http://crbug.com/18568 TEST=everything should still work, all themes should draw correctly Review URL: http://codereview.chromium.org/661206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40173 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/browser_window_controller_private.mm | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'chrome/browser/cocoa/browser_window_controller_private.mm') diff --git a/chrome/browser/cocoa/browser_window_controller_private.mm b/chrome/browser/cocoa/browser_window_controller_private.mm index 75fc2fb..e4ab513 100644 --- a/chrome/browser/cocoa/browser_window_controller_private.mm +++ b/chrome/browser/cocoa/browser_window_controller_private.mm @@ -10,7 +10,6 @@ #include "chrome/browser/browser_list.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/browser_theme_provider.h" -#import "chrome/browser/cocoa/browser_theme_provider_init.h" #import "chrome/browser/cocoa/chrome_browser_window.h" #import "chrome/browser/cocoa/fast_resize_view.h" #import "chrome/browser/cocoa/find_bar_cocoa_controller.h" @@ -121,19 +120,6 @@ willPositionSheet:(NSWindow*)sheet return defaultSheetRect; } -- (void)setTheme { - ThemeProvider* theme_provider = browser_->profile()->GetThemeProvider(); - BrowserThemeProvider* browser_theme_provider = - static_cast(theme_provider); - if (browser_theme_provider) { - bool offtheRecord = browser_->profile()->IsOffTheRecord(); - GTMTheme* theme = - [GTMTheme themeWithBrowserThemeProvider:browser_theme_provider - isOffTheRecord:offtheRecord]; - theme_.reset([theme retain]); - } -} - - (void)layoutSubviews { // With the exception of the tab strip, the subviews which we lay out are // subviews of the content view, so we mainly work in the content view's -- cgit v1.1