From 6d60e9b60fd6f35aeae795baa197895227dff072 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 18 Sep 2009 17:11:36 +0000 Subject: [PATCH] Remove the intializaton of the Download Manager when bringing up the options dialog. This was done a long long time ago because we used to register the download dir pref in the Download Manager constructor. Since that's no longer the case, we don't need to intialize the Download Manager. Review URL: http://codereview.chromium.org/208021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26583 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/options/options_window_gtk.cc | 3 --- chrome/browser/views/options/options_window_view.cc | 3 --- 2 files changed, 6 deletions(-) diff --git a/chrome/browser/gtk/options/options_window_gtk.cc b/chrome/browser/gtk/options/options_window_gtk.cc index 632464142b403..f55b82fa86f14 100644 --- a/chrome/browser/gtk/options/options_window_gtk.cc +++ b/chrome/browser/gtk/options/options_window_gtk.cc @@ -81,9 +81,6 @@ OptionsWindowGtk::OptionsWindowGtk(Profile* profile) general_page_(profile_), content_page_(profile_), advanced_page_(profile_) { - // The download manager needs to be initialized before the contents of the - // Options Window are created. - profile_->GetDownloadManager(); // We don't need to observe changes in this value. last_selected_page_.Init(prefs::kOptionsWindowLastTabIndex, g_browser_process->local_state(), NULL); diff --git a/chrome/browser/views/options/options_window_view.cc b/chrome/browser/views/options/options_window_view.cc index f338eb76b39a4..4c34e329fc710 100644 --- a/chrome/browser/views/options/options_window_view.cc +++ b/chrome/browser/views/options/options_window_view.cc @@ -89,9 +89,6 @@ OptionsWindowView::OptionsWindowView(Profile* profile) // the record comes from the original profile, but we explicitly use // the original profile to avoid potential problems. : profile_(profile->GetOriginalProfile()) { - // The download manager needs to be initialized before the contents of the - // Options Window are created. - profile_->GetDownloadManager(); // We don't need to observe changes in this value. last_selected_page_.Init(prefs::kOptionsWindowLastTabIndex, g_browser_process->local_state(), NULL); -- GitLab