Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: src/chrome/browser/options_util.cc

Issue 174306: Clears the "Clear auto-opening settings" button (put it in the default state,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/chrome/browser/options_util.cc
===================================================================
--- src/chrome/browser/options_util.cc (revision 24062)
+++ src/chrome/browser/options_util.cc (working copy)
@@ -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 @@
prefs::kWebKitSansSerifFontFamily,
prefs::kWebKitSerifFontFamily,
};
+ profile->GetDownloadManager()->ResetAutoOpenFiles();
for (size_t i = 0; i < arraysize(kUserPrefs); ++i)
prefs->ClearPref(kUserPrefs[i]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698