$OpenBSD: patch-chrome_browser_tab_contents_tab_contents_cc,v 1.2 2011/02/08 09:43:02 espie Exp $
--- chrome/browser/tab_contents/tab_contents.cc.orig	Fri Jan 21 10:20:24 2011
+++ chrome/browser/tab_contents/tab_contents.cc	Sun Jan 23 23:27:32 2011
@@ -414,7 +414,7 @@ TabContents::TabContents(Profile* profile,
                  NotificationService::AllSources());
   registrar_.Add(this, NotificationType::RENDER_WIDGET_HOST_DESTROYED,
                  NotificationService::AllSources());
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_GTK)
   registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED,
                  NotificationService::AllSources());
 #endif
@@ -3163,7 +3163,7 @@ void TabContents::Observe(NotificationType type,
       break;
     }
 
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_GTK)
     case NotificationType::BROWSER_THEME_CHANGED: {
       renderer_preferences_util::UpdateFromSystemSettings(
           &renderer_preferences_, profile());
