summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 23:06:34 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 23:06:34 +0000
commit759fd8382b067bc75200a932938a5bc66e453f5b (patch)
tree3c4deadc9a93a45910cb2d1d623f5a6cbab1df5a /chrome/browser/browser_main.cc
parente4d2777f68b97b152eef5971d28fbe1c260d6782 (diff)
downloadchromium_src-759fd8382b067bc75200a932938a5bc66e453f5b.zip
chromium_src-759fd8382b067bc75200a932938a5bc66e453f5b.tar.gz
chromium_src-759fd8382b067bc75200a932938a5bc66e453f5b.tar.bz2
Initialize gtk syles before first run dialog. (Missed in r17104)
BUG=none TEST=Linux first run dialog should be properly styled? Review URL: http://codereview.chromium.org/115890 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc12
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.