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/download/download_manager.h" | 8 #include "chrome/browser/download/download_manager.h" |
9 #include "chrome/browser/download/download_prefs.h" | 9 #include "chrome/browser/download/download_prefs.h" |
10 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 10 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 prefs::kURLsToRestoreOnStartup, | 60 prefs::kURLsToRestoreOnStartup, |
61 prefs::kWebKitDefaultFixedFontSize, | 61 prefs::kWebKitDefaultFixedFontSize, |
62 prefs::kWebKitDefaultFontSize, | 62 prefs::kWebKitDefaultFontSize, |
63 prefs::kWebKitFixedFontFamily, | 63 prefs::kWebKitFixedFontFamily, |
64 prefs::kWebKitJavaEnabled, | 64 prefs::kWebKitJavaEnabled, |
65 prefs::kWebKitJavascriptEnabled, | 65 prefs::kWebKitJavascriptEnabled, |
66 prefs::kWebKitLoadsImagesAutomatically, | 66 prefs::kWebKitLoadsImagesAutomatically, |
67 prefs::kWebKitPluginsEnabled, | 67 prefs::kWebKitPluginsEnabled, |
68 prefs::kWebKitSansSerifFontFamily, | 68 prefs::kWebKitSansSerifFontFamily, |
69 prefs::kWebKitSerifFontFamily, | 69 prefs::kWebKitSerifFontFamily, |
| 70 prefs::kWebKitMinimumFontSize, |
| 71 prefs::kWebKitMinimumLogicalFontSize, |
70 prefs::kWebkitTabsToLinks, | 72 prefs::kWebkitTabsToLinks, |
71 }; | 73 }; |
72 profile->GetDownloadManager()->download_prefs()->ResetToDefaults(); | 74 profile->GetDownloadManager()->download_prefs()->ResetToDefaults(); |
73 profile->GetHostContentSettingsMap()->ResetToDefaults(); | 75 profile->GetHostContentSettingsMap()->ResetToDefaults(); |
74 profile->GetGeolocationContentSettingsMap()->ResetToDefault(); | 76 profile->GetGeolocationContentSettingsMap()->ResetToDefault(); |
75 profile->GetHostZoomMap()->ResetToDefaults(); | 77 profile->GetHostZoomMap()->ResetToDefaults(); |
76 profile->GetDesktopNotificationService()->ResetToDefaultContentSetting(); | 78 profile->GetDesktopNotificationService()->ResetToDefaultContentSetting(); |
77 for (size_t i = 0; i < arraysize(kUserPrefs); ++i) | 79 for (size_t i = 0; i < arraysize(kUserPrefs); ++i) |
78 prefs->ClearPref(kUserPrefs[i]); | 80 prefs->ClearPref(kUserPrefs[i]); |
79 | 81 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 if (metrics) { | 114 if (metrics) { |
113 metrics->SetUserPermitsUpload(enabled); | 115 metrics->SetUserPermitsUpload(enabled); |
114 if (enabled) | 116 if (enabled) |
115 metrics->Start(); | 117 metrics->Start(); |
116 else | 118 else |
117 metrics->Stop(); | 119 metrics->Stop(); |
118 } | 120 } |
119 | 121 |
120 return enabled; | 122 return enabled; |
121 } | 123 } |
OLD | NEW |