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/ui/options/options_util.h" | 5 #include "chrome/browser/ui/options/options_util.h" |
6 | 6 |
7 #include "base/threading/thread_restrictions.h" | 7 #include "base/threading/thread_restrictions.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/download/download_manager.h" | 9 #include "chrome/browser/download/download_manager.h" |
10 #include "chrome/browser/download/download_prefs.h" | 10 #include "chrome/browser/download/download_prefs.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 prefs::kClearPluginLSODataOnExit, | 30 prefs::kClearPluginLSODataOnExit, |
31 prefs::kClearSiteDataOnExit, | 31 prefs::kClearSiteDataOnExit, |
32 prefs::kCookieBehavior, | 32 prefs::kCookieBehavior, |
33 prefs::kDefaultCharset, | 33 prefs::kDefaultCharset, |
34 prefs::kDefaultZoomLevel, | 34 prefs::kDefaultZoomLevel, |
35 prefs::kDeleteBrowsingHistory, | 35 prefs::kDeleteBrowsingHistory, |
36 prefs::kDeleteCache, | 36 prefs::kDeleteCache, |
37 prefs::kDeleteCookies, | 37 prefs::kDeleteCookies, |
38 prefs::kDeleteDownloadHistory, | 38 prefs::kDeleteDownloadHistory, |
39 prefs::kDeleteFormData, | 39 prefs::kDeleteFormData, |
40 prefs::kDeleteLSOData, | |
41 prefs::kDeletePasswords, | 40 prefs::kDeletePasswords, |
42 prefs::kDnsPrefetchingEnabled, | 41 prefs::kDnsPrefetchingEnabled, |
43 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) | 42 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) |
44 prefs::kCertRevocationCheckingEnabled, | 43 prefs::kCertRevocationCheckingEnabled, |
45 prefs::kSSL3Enabled, | 44 prefs::kSSL3Enabled, |
46 prefs::kTLS1Enabled, | 45 prefs::kTLS1Enabled, |
47 #endif | 46 #endif |
48 #if defined(OS_CHROMEOS) | 47 #if defined(OS_CHROMEOS) |
49 prefs::kTapToClickEnabled, | 48 prefs::kTapToClickEnabled, |
50 prefs::kTouchpadSensitivity, | 49 prefs::kTouchpadSensitivity, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 if (metrics) { | 124 if (metrics) { |
126 metrics->SetUserPermitsUpload(enabled); | 125 metrics->SetUserPermitsUpload(enabled); |
127 if (enabled) | 126 if (enabled) |
128 metrics->Start(); | 127 metrics->Start(); |
129 else | 128 else |
130 metrics->Stop(); | 129 metrics->Stop(); |
131 } | 130 } |
132 | 131 |
133 return enabled; | 132 return enabled; |
134 } | 133 } |
OLD | NEW |