diff options
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r-- | chrome/browser/browser_main.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 19b505a..84ab4f8 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -330,6 +330,12 @@ int BrowserMain(const MainFunctionParams& parameters) { 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. @@ -538,12 +544,6 @@ int BrowserMain(const MainFunctionParams& parameters) { 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. |