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

Side by Side Diff: chrome/browser/ui/browser_ui_prefs.cc

Issue 12092089: Display an info banner on the clear browsing data dialog if the browsing data was cleared within th… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments round 2 from James. Created 7 years, 10 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser_ui_prefs.h" 5 #include "chrome/browser/ui/browser_ui_prefs.h"
6 6
7 #include "chrome/browser/first_run/first_run.h" 7 #include "chrome/browser/first_run/first_run.h"
8 #include "chrome/browser/prefs/pref_service.h" 8 #include "chrome/browser/prefs/pref_service.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 PrefServiceSyncable::SYNCABLE_PREF); 61 PrefServiceSyncable::SYNCABLE_PREF);
62 prefs->RegisterBooleanPref(prefs::kDeleteFormData, 62 prefs->RegisterBooleanPref(prefs::kDeleteFormData,
63 false, 63 false,
64 PrefServiceSyncable::SYNCABLE_PREF); 64 PrefServiceSyncable::SYNCABLE_PREF);
65 prefs->RegisterBooleanPref(prefs::kDeleteHostedAppsData, 65 prefs->RegisterBooleanPref(prefs::kDeleteHostedAppsData,
66 false, 66 false,
67 PrefServiceSyncable::SYNCABLE_PREF); 67 PrefServiceSyncable::SYNCABLE_PREF);
68 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, 68 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod,
69 0, 69 0,
70 PrefServiceSyncable::SYNCABLE_PREF); 70 PrefServiceSyncable::SYNCABLE_PREF);
71 prefs->RegisterInt64Pref(prefs::kLastClearBrowsingDataTime,
72 0,
73 PrefServiceSyncable::UNSYNCABLE_PREF);
71 prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser, 74 prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser,
72 true, 75 true,
73 PrefServiceSyncable::UNSYNCABLE_PREF); 76 PrefServiceSyncable::UNSYNCABLE_PREF);
74 #if defined(OS_WIN) 77 #if defined(OS_WIN)
75 // As with Mac-spacific code above, it should be in a platform-specific 78 // As with Mac-spacific code above, it should be in a platform-specific
76 // section somewhere, but there is no good place for it. 79 // section somewhere, but there is no good place for it.
77 prefs->RegisterBooleanPref(prefs::kSuppressSwitchToMetroModeOnSetDefault, 80 prefs->RegisterBooleanPref(prefs::kSuppressSwitchToMetroModeOnSetDefault,
78 false, 81 false,
79 PrefServiceSyncable::UNSYNCABLE_PREF); 82 PrefServiceSyncable::UNSYNCABLE_PREF);
80 #endif 83 #endif
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // TODO(joi): Switch to official way of registering local prefs 169 // TODO(joi): Switch to official way of registering local prefs
167 // for this class, i.e. in a function called from 170 // for this class, i.e. in a function called from
168 // browser_prefs::RegisterUserPrefs. 171 // browser_prefs::RegisterUserPrefs.
169 prefs->RegisterDictionaryPref(window_pref.c_str(), 172 prefs->RegisterDictionaryPref(window_pref.c_str(),
170 PrefServiceSyncable::UNSYNCABLE_PREF); 173 PrefServiceSyncable::UNSYNCABLE_PREF);
171 } 174 }
172 } 175 }
173 176
174 177
175 } // namespace chrome 178 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698