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

Side by Side Diff: components/browsing_data/core/pref_names.cc

Issue 2646313005: Implement additional parts of the new ui for CBD. (Closed)
Patch Set: remove linearlayout Created 3 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
« no previous file with comments | « components/browsing_data/core/pref_names.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/browsing_data/core/pref_names.h" 5 #include "components/browsing_data/core/pref_names.h"
6 6
7 #include "components/pref_registry/pref_registry_syncable.h" 7 #include "components/pref_registry/pref_registry_syncable.h"
8 8
9 namespace browsing_data { 9 namespace browsing_data {
10 10
(...skipping 10 matching lines...) Expand all
21 const char kDeletePasswords[] = "browser.clear_data.passwords"; 21 const char kDeletePasswords[] = "browser.clear_data.passwords";
22 const char kDeleteFormData[] = "browser.clear_data.form_data"; 22 const char kDeleteFormData[] = "browser.clear_data.form_data";
23 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data"; 23 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
24 const char kDeleteMediaLicenses[] = "browser.clear_data.media_licenses"; 24 const char kDeleteMediaLicenses[] = "browser.clear_data.media_licenses";
25 25
26 // Other Clear Browsing Data preferences. 26 // Other Clear Browsing Data preferences.
27 const char kLastClearBrowsingDataTime[] = 27 const char kLastClearBrowsingDataTime[] =
28 "browser.last_clear_browsing_data_time"; 28 "browser.last_clear_browsing_data_time";
29 const char kClearBrowsingDataHistoryNoticeShownTimes[] = 29 const char kClearBrowsingDataHistoryNoticeShownTimes[] =
30 "browser.clear_data.history_notice_shown_times"; 30 "browser.clear_data.history_notice_shown_times";
31 const char kLastClearBrowsingDataTab[] = "browser.last_clear_browsing_data_tab";
31 32
32 void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) { 33 void RegisterBrowserUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
33 registry->RegisterIntegerPref( 34 registry->RegisterIntegerPref(
34 kDeleteTimePeriod, 0, 35 kDeleteTimePeriod, 0,
35 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 36 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
36 registry->RegisterBooleanPref( 37 registry->RegisterBooleanPref(
37 kDeleteBrowsingHistory, true, 38 kDeleteBrowsingHistory, true,
38 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 39 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
39 registry->RegisterBooleanPref( 40 registry->RegisterBooleanPref(
40 kDeleteCache, true, 41 kDeleteCache, true,
(...skipping 15 matching lines...) Expand all
56 kDeleteDownloadHistory, true, 57 kDeleteDownloadHistory, true,
57 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 58 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
58 registry->RegisterBooleanPref( 59 registry->RegisterBooleanPref(
59 kDeleteHostedAppsData, false, 60 kDeleteHostedAppsData, false,
60 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 61 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
61 registry->RegisterBooleanPref( 62 registry->RegisterBooleanPref(
62 kDeleteMediaLicenses, false, 63 kDeleteMediaLicenses, false,
63 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 64 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
64 registry->RegisterInt64Pref(prefs::kLastClearBrowsingDataTime, 0); 65 registry->RegisterInt64Pref(prefs::kLastClearBrowsingDataTime, 0);
65 #endif // !defined(OS_IOS) 66 #endif // !defined(OS_IOS)
67
68 #if defined(OS_ANDROID)
69 registry->RegisterIntegerPref(
70 kLastClearBrowsingDataTab, 0,
71 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
72 #endif
66 } 73 }
67 74
68 } // namespace prefs 75 } // namespace prefs
69 76
70 } // namespace browsing_data 77 } // namespace browsing_data
OLDNEW
« no previous file with comments | « components/browsing_data/core/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698