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 "base/thread_restrictions.h" | 7 #include "base/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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 prefs::kEnableSpellCheck, | 55 prefs::kEnableSpellCheck, |
56 prefs::kEnableTranslate, | 56 prefs::kEnableTranslate, |
57 prefs::kAutoFillEnabled, | 57 prefs::kAutoFillEnabled, |
58 prefs::kAutoFillAuxiliaryProfilesEnabled, | 58 prefs::kAutoFillAuxiliaryProfilesEnabled, |
59 prefs::kHomePage, | 59 prefs::kHomePage, |
60 prefs::kHomePageIsNewTabPage, | 60 prefs::kHomePageIsNewTabPage, |
61 prefs::kPromptForDownload, | 61 prefs::kPromptForDownload, |
62 prefs::kPasswordManagerEnabled, | 62 prefs::kPasswordManagerEnabled, |
63 prefs::kRestoreOnStartup, | 63 prefs::kRestoreOnStartup, |
64 prefs::kSafeBrowsingEnabled, | 64 prefs::kSafeBrowsingEnabled, |
65 prefs::kSafeBrowsingMalwareReportsEnabled, | |
lzheng
2010/11/13 00:01:35
Could this just be kSafeBrowsingReportingEnabled?
panayiotis
2010/11/13 01:13:45
Done.
| |
65 prefs::kSearchSuggestEnabled, | 66 prefs::kSearchSuggestEnabled, |
66 prefs::kShowHomeButton, | 67 prefs::kShowHomeButton, |
67 prefs::kSpellCheckDictionary, | 68 prefs::kSpellCheckDictionary, |
68 prefs::kURLsToRestoreOnStartup, | 69 prefs::kURLsToRestoreOnStartup, |
69 prefs::kWebKitDefaultFixedFontSize, | 70 prefs::kWebKitDefaultFixedFontSize, |
70 prefs::kWebKitDefaultFontSize, | 71 prefs::kWebKitDefaultFontSize, |
71 prefs::kWebKitFixedFontFamily, | 72 prefs::kWebKitFixedFontFamily, |
72 prefs::kWebKitJavaEnabled, | 73 prefs::kWebKitJavaEnabled, |
73 prefs::kWebKitJavascriptEnabled, | 74 prefs::kWebKitJavascriptEnabled, |
74 prefs::kWebKitLoadsImagesAutomatically, | 75 prefs::kWebKitLoadsImagesAutomatically, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 if (metrics) { | 125 if (metrics) { |
125 metrics->SetUserPermitsUpload(enabled); | 126 metrics->SetUserPermitsUpload(enabled); |
126 if (enabled) | 127 if (enabled) |
127 metrics->Start(); | 128 metrics->Start(); |
128 else | 129 else |
129 metrics->Stop(); | 130 metrics->Stop(); |
130 } | 131 } |
131 | 132 |
132 return enabled; | 133 return enabled; |
133 } | 134 } |
OLD | NEW |