| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/metrics/metrics_service.h" | 10 #include "chrome/browser/metrics/metrics_service.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #if defined(OS_LINUX) | 27 #if defined(OS_LINUX) |
| 28 prefs::kCertRevocationCheckingEnabled, | 28 prefs::kCertRevocationCheckingEnabled, |
| 29 prefs::kSSL2Enabled, | 29 prefs::kSSL2Enabled, |
| 30 prefs::kSSL3Enabled, | 30 prefs::kSSL3Enabled, |
| 31 prefs::kTLS1Enabled, | 31 prefs::kTLS1Enabled, |
| 32 #endif | 32 #endif |
| 33 #if defined(OS_CHROMEOS) | 33 #if defined(OS_CHROMEOS) |
| 34 prefs::kTapToClickEnabled, | 34 prefs::kTapToClickEnabled, |
| 35 prefs::kVertEdgeScrollEnabled, | 35 prefs::kVertEdgeScrollEnabled, |
| 36 prefs::kTouchpadSpeedFactor, | 36 prefs::kTouchpadSpeedFactor, |
| 37 prefs::kTouchpadSensitivity, |
| 37 #endif | 38 #endif |
| 38 prefs::kDownloadDefaultDirectory, | 39 prefs::kDownloadDefaultDirectory, |
| 39 prefs::kDownloadExtensionsToOpen, | 40 prefs::kDownloadExtensionsToOpen, |
| 40 prefs::kEnableSpellCheck, | 41 prefs::kEnableSpellCheck, |
| 41 prefs::kFormAutofillEnabled, | 42 prefs::kFormAutofillEnabled, |
| 42 prefs::kHomePage, | 43 prefs::kHomePage, |
| 43 prefs::kHomePageIsNewTabPage, | 44 prefs::kHomePageIsNewTabPage, |
| 44 prefs::kMixedContentFiltering, | 45 prefs::kMixedContentFiltering, |
| 45 prefs::kPromptForDownload, | 46 prefs::kPromptForDownload, |
| 46 prefs::kPasswordManagerEnabled, | 47 prefs::kPasswordManagerEnabled, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 if (metrics) { | 101 if (metrics) { |
| 101 metrics->SetUserPermitsUpload(enabled); | 102 metrics->SetUserPermitsUpload(enabled); |
| 102 if (enabled) | 103 if (enabled) |
| 103 metrics->Start(); | 104 metrics->Start(); |
| 104 else | 105 else |
| 105 metrics->Stop(); | 106 metrics->Stop(); |
| 106 } | 107 } |
| 107 | 108 |
| 108 return enabled; | 109 return enabled; |
| 109 } | 110 } |
| OLD | NEW |