Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/browser/options_util.cc

Issue 5278001: Add a preference to clear Flash LSO data in the Clear Browsing Data dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 10 matching lines...) Expand all
21 // static 21 // static
22 void OptionsUtil::ResetToDefaults(Profile* profile) { 22 void OptionsUtil::ResetToDefaults(Profile* profile) {
23 // TODO(tc): It would be nice if we could generate this list automatically so 23 // TODO(tc): It would be nice if we could generate this list automatically so
24 // changes to any of the options pages doesn't require updating this list 24 // changes to any of the options pages doesn't require updating this list
25 // manually. 25 // manually.
26 PrefService* prefs = profile->GetPrefs(); 26 PrefService* prefs = profile->GetPrefs();
27 const char* kUserPrefs[] = { 27 const char* kUserPrefs[] = {
28 prefs::kAcceptLanguages, 28 prefs::kAcceptLanguages,
29 prefs::kAlternateErrorPagesEnabled, 29 prefs::kAlternateErrorPagesEnabled,
30 prefs::kBackgroundModeEnabled, 30 prefs::kBackgroundModeEnabled,
31 prefs::kClearPluginLSODataOnExit,
31 prefs::kClearSiteDataOnExit, 32 prefs::kClearSiteDataOnExit,
32 prefs::kCookieBehavior, 33 prefs::kCookieBehavior,
33 prefs::kDefaultCharset, 34 prefs::kDefaultCharset,
34 prefs::kDefaultZoomLevel, 35 prefs::kDefaultZoomLevel,
35 prefs::kDeleteBrowsingHistory, 36 prefs::kDeleteBrowsingHistory,
36 prefs::kDeleteCache, 37 prefs::kDeleteCache,
37 prefs::kDeleteCookies, 38 prefs::kDeleteCookies,
38 prefs::kDeleteDownloadHistory, 39 prefs::kDeleteDownloadHistory,
39 prefs::kDeleteFormData, 40 prefs::kDeleteFormData,
41 prefs::kDeleteLSOData,
40 prefs::kDeletePasswords, 42 prefs::kDeletePasswords,
41 prefs::kDnsPrefetchingEnabled, 43 prefs::kDnsPrefetchingEnabled,
42 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) 44 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
43 prefs::kCertRevocationCheckingEnabled, 45 prefs::kCertRevocationCheckingEnabled,
44 prefs::kSSL2Enabled, 46 prefs::kSSL2Enabled,
45 prefs::kSSL3Enabled, 47 prefs::kSSL3Enabled,
46 prefs::kTLS1Enabled, 48 prefs::kTLS1Enabled,
47 #endif 49 #endif
48 #if defined(OS_CHROMEOS) 50 #if defined(OS_CHROMEOS)
49 prefs::kTapToClickEnabled, 51 prefs::kTapToClickEnabled,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 if (metrics) { 126 if (metrics) {
125 metrics->SetUserPermitsUpload(enabled); 127 metrics->SetUserPermitsUpload(enabled);
126 if (enabled) 128 if (enabled)
127 metrics->Start(); 129 metrics->Start();
128 else 130 else
129 metrics->Stop(); 131 metrics->Stop();
130 } 132 }
131 133
132 return enabled; 134 return enabled;
133 } 135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698