summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index cec8e46..d2bc9de 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -536,6 +536,12 @@ 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: This block of code should probably be used on all platforms!
// On Mac OS X we display this dialog before setting the value of
// kMetricsReportingEnabled, so we display this dialog much earlier.
@@ -613,9 +619,6 @@ int BrowserMain(const MainFunctionParams& parameters) {
// the installation event.
RLZTracker::InitRlzDelayed(base::DIR_MODULE, is_first_run);
#endif
-#if defined(TOOLKIT_GTK)
- gtk_util::InitRCStyles();
-#endif
// Config the network module so it has access to resources.
net::NetModule::SetResourceProvider(NetResourceProvider);