diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-22 16:27:32 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-22 16:27:32 +0000 |
commit | 02a8b9d8e4a02df08fe257ec0b482cf72d88503c (patch) | |
tree | 6e7180186d6ec0f3efe33434e54fe68daddbd216 /chrome | |
parent | 4d07cdc36eb36882e7dbfc78bf55ae2b5bef4dbb (diff) | |
download | chromium_src-02a8b9d8e4a02df08fe257ec0b482cf72d88503c.zip chromium_src-02a8b9d8e4a02df08fe257ec0b482cf72d88503c.tar.gz chromium_src-02a8b9d8e4a02df08fe257ec0b482cf72d88503c.tar.bz2 |
Clears the "Clear auto-opening settings" button (put it in the default state,
ie, disabled), when the user
clicks in "Reset to defaults" button.
BUG=7334 (http://crbug.com/7334)
TEST=Download a file, enable "Always open files of this type" from download item
menu, go to Options/Under the
Hood and then click on "Reset to defaults" button.
Contributed by tfarina (thiago.farina@gmail.com)
Review URL: http://codereview.chromium.org/174306
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24080 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/options_util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/options_util.cc b/chrome/browser/options_util.cc index a69b11e..fe985de 100644 --- a/chrome/browser/options_util.cc +++ b/chrome/browser/options_util.cc @@ -6,6 +6,7 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/profile.h" +#include "chrome/browser/download/download_manager.h" #include "chrome/browser/metrics/metrics_service.h" #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" @@ -54,6 +55,7 @@ void OptionsUtil::ResetToDefaults(Profile* profile) { prefs::kWebKitSansSerifFontFamily, prefs::kWebKitSerifFontFamily, }; + profile->GetDownloadManager()->ResetAutoOpenFiles(); for (size_t i = 0; i < arraysize(kUserPrefs); ++i) prefs->ClearPref(kUserPrefs[i]); |