OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/options_util.h" | 5 #include "chrome/browser/options_util.h" |
6 | 6 |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
9 #include "chrome/browser/download/download_manager.h" | 9 #include "chrome/browser/download/download_manager.h" |
10 #include "chrome/browser/host_content_settings_map.h" | 10 #include "chrome/browser/host_content_settings_map.h" |
11 #include "chrome/browser/host_zoom_map.h" | 11 #include "chrome/browser/host_zoom_map.h" |
12 #include "chrome/browser/metrics/metrics_service.h" | 12 #include "chrome/browser/metrics/metrics_service.h" |
13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
14 #include "chrome/common/pref_service.h" | 14 #include "chrome/common/pref_service.h" |
15 #include "chrome/installer/util/google_update_settings.h" | 15 #include "chrome/installer/util/google_update_settings.h" |
16 | 16 |
17 // static | 17 // static |
18 void OptionsUtil::ResetToDefaults(Profile* profile) { | 18 void OptionsUtil::ResetToDefaults(Profile* profile) { |
19 // TODO(tc): It would be nice if we could generate this list automatically so | 19 // TODO(tc): It would be nice if we could generate this list automatically so |
20 // changes to any of the options pages doesn't require updating this list | 20 // changes to any of the options pages doesn't require updating this list |
21 // manually. | 21 // manually. |
22 PrefService* prefs = profile->GetPrefs(); | 22 PrefService* prefs = profile->GetPrefs(); |
23 const wchar_t* kUserPrefs[] = { | 23 const wchar_t* kUserPrefs[] = { |
24 prefs::kAcceptLanguages, | 24 prefs::kAcceptLanguages, |
25 prefs::kAlternateErrorPagesEnabled, | 25 prefs::kAlternateErrorPagesEnabled, |
| 26 prefs::kClearSiteDataOnExit, |
26 prefs::kCookieBehavior, | 27 prefs::kCookieBehavior, |
27 prefs::kDefaultCharset, | 28 prefs::kDefaultCharset, |
28 prefs::kDnsPrefetchingEnabled, | 29 prefs::kDnsPrefetchingEnabled, |
29 #if defined(OS_LINUX) | 30 #if defined(OS_LINUX) |
30 prefs::kCertRevocationCheckingEnabled, | 31 prefs::kCertRevocationCheckingEnabled, |
31 prefs::kSSL2Enabled, | 32 prefs::kSSL2Enabled, |
32 prefs::kSSL3Enabled, | 33 prefs::kSSL3Enabled, |
33 prefs::kTLS1Enabled, | 34 prefs::kTLS1Enabled, |
34 #endif | 35 #endif |
35 #if defined(OS_CHROMEOS) | 36 #if defined(OS_CHROMEOS) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 if (metrics) { | 107 if (metrics) { |
107 metrics->SetUserPermitsUpload(enabled); | 108 metrics->SetUserPermitsUpload(enabled); |
108 if (enabled) | 109 if (enabled) |
109 metrics->Start(); | 110 metrics->Start(); |
110 else | 111 else |
111 metrics->Stop(); | 112 metrics->Stop(); |
112 } | 113 } |
113 | 114 |
114 return enabled; | 115 return enabled; |
115 } | 116 } |
OLD | NEW |