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

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.cc

Issue 2906103002: Post-cleanup settings reset. (Closed)
Patch Set: Addressed Ali's final comments Created 3 years, 6 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
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/prefs/chrome_command_line_pref_store.h> 5 #include <chrome/browser/prefs/chrome_command_line_pref_store.h>
6 #include "chrome/browser/prefs/chrome_pref_service_factory.h" 6 #include "chrome/browser/prefs/chrome_pref_service_factory.h"
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 ValueType::IMPERSONAL}, 168 ValueType::IMPERSONAL},
169 {26, prefs::kSettingsResetPromptLastTriggeredForDefaultSearch, 169 {26, prefs::kSettingsResetPromptLastTriggeredForDefaultSearch,
170 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC, 170 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC,
171 ValueType::IMPERSONAL}, 171 ValueType::IMPERSONAL},
172 {27, prefs::kSettingsResetPromptLastTriggeredForStartupUrls, 172 {27, prefs::kSettingsResetPromptLastTriggeredForStartupUrls,
173 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC, 173 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC,
174 ValueType::IMPERSONAL}, 174 ValueType::IMPERSONAL},
175 {28, prefs::kSettingsResetPromptLastTriggeredForHomepage, 175 {28, prefs::kSettingsResetPromptLastTriggeredForHomepage,
176 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC, 176 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC,
177 ValueType::IMPERSONAL}, 177 ValueType::IMPERSONAL},
178 {29, prefs::kChromeCleanerResetPending, EnforcementLevel::ENFORCE_ON_LOAD,
179 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
gab 2017/06/14 17:08:12 What's the point of protecting this? Settings prot
ftirelo 2017/06/15 03:41:23 Done.
178 #endif // defined(OS_WIN) 180 #endif // defined(OS_WIN)
179 181
180 // See note at top, new items added here also need to be added to 182 // See note at top, new items added here also need to be added to
181 // histograms.xml's TrackedPreference enum. 183 // histograms.xml's TrackedPreference enum.
182 }; 184 };
183 185
184 // One more than the last tracked preferences ID above. 186 // One more than the last tracked preferences ID above.
185 const size_t kTrackedPrefsReportingIDsCount = 187 const size_t kTrackedPrefsReportingIDsCount =
186 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1; 188 kTrackedPrefs[arraysize(kTrackedPrefs) - 1].reporting_id + 1;
187 189
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 504
503 void ClearResetTime(Profile* profile) { 505 void ClearResetTime(Profile* profile) {
504 ProfilePrefStoreManager::ClearResetTime(profile->GetPrefs()); 506 ProfilePrefStoreManager::ClearResetTime(profile->GetPrefs());
505 } 507 }
506 508
507 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 509 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
508 ProfilePrefStoreManager::RegisterProfilePrefs(registry); 510 ProfilePrefStoreManager::RegisterProfilePrefs(registry);
509 } 511 }
510 512
511 } // namespace chrome_prefs 513 } // namespace chrome_prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698