Index: chrome/browser/browser_main.cc |
=================================================================== |
--- chrome/browser/browser_main.cc (revision 17121) |
+++ chrome/browser/browser_main.cc (working copy) |
@@ -329,6 +329,12 @@ |
local_state->RegisterStringPref(prefs::kApplicationLocale, L""); |
local_state->RegisterBooleanPref(prefs::kMetricsReportingEnabled, false); |
+#if defined(TOOLKIT_GTK) |
+ // It is important for this to happen before the first run dialog, as it |
+ // styles the dialog as well. |
+ gtk_util::InitRCStyles(); |
+#endif |
+ |
#if defined(OS_POSIX) |
// On Mac OS X / Linux we display the first run dialog as early as possible, |
// so we can get the stats enabled. |
@@ -530,12 +536,6 @@ |
process_singleton.Create(); |
-#if defined(TOOLKIT_GTK) |
- // It is important for this to happen before the first run dialog, as it |
- // styles the dialog as well. |
- gtk_util::InitRCStyles(); |
-#endif |
- |
// TODO(port): This block of code should probably be used on all platforms! |
// On Mac OS X / Linux we display this dialog before setting the value of |
// kMetricsReportingEnabled, so we display this dialog much earlier. |