| 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 12 matching lines...) Expand all Loading... |
| 23 prefs::kAlternateErrorPagesEnabled, | 23 prefs::kAlternateErrorPagesEnabled, |
| 24 prefs::kCookieBehavior, | 24 prefs::kCookieBehavior, |
| 25 prefs::kDefaultCharset, | 25 prefs::kDefaultCharset, |
| 26 prefs::kDnsPrefetchingEnabled, | 26 prefs::kDnsPrefetchingEnabled, |
| 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) |
| 34 prefs::kTapToClickEnabled, |
| 35 prefs::kVertEdgeScrollEnabled, |
| 36 #endif |
| 33 prefs::kDownloadDefaultDirectory, | 37 prefs::kDownloadDefaultDirectory, |
| 34 prefs::kDownloadExtensionsToOpen, | 38 prefs::kDownloadExtensionsToOpen, |
| 35 prefs::kEnableSpellCheck, | 39 prefs::kEnableSpellCheck, |
| 36 prefs::kFormAutofillEnabled, | 40 prefs::kFormAutofillEnabled, |
| 37 prefs::kHomePage, | 41 prefs::kHomePage, |
| 38 prefs::kHomePageIsNewTabPage, | 42 prefs::kHomePageIsNewTabPage, |
| 39 prefs::kMixedContentFiltering, | 43 prefs::kMixedContentFiltering, |
| 40 prefs::kPromptForDownload, | 44 prefs::kPromptForDownload, |
| 41 prefs::kPasswordManagerEnabled, | 45 prefs::kPasswordManagerEnabled, |
| 42 prefs::kRestoreOnStartup, | 46 prefs::kRestoreOnStartup, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 if (metrics) { | 99 if (metrics) { |
| 96 metrics->SetUserPermitsUpload(enabled); | 100 metrics->SetUserPermitsUpload(enabled); |
| 97 if (enabled) | 101 if (enabled) |
| 98 metrics->Start(); | 102 metrics->Start(); |
| 99 else | 103 else |
| 100 metrics->Stop(); | 104 metrics->Stop(); |
| 101 } | 105 } |
| 102 | 106 |
| 103 return enabled; | 107 return enabled; |
| 104 } | 108 } |
| OLD | NEW |