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

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

Issue 533183002: Revert "Eliminate all code related to the AutomaticProfileResetter." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_pref_service_factory.h" 5 #include "chrome/browser/prefs/chrome_pref_service_factory.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 PrefHashFilter::TRACKING_STRATEGY_ATOMIC 147 PrefHashFilter::TRACKING_STRATEGY_ATOMIC
148 }, 148 },
149 #if !defined(OS_ANDROID) 149 #if !defined(OS_ANDROID)
150 { 150 {
151 11, prefs::kPinnedTabs, 151 11, prefs::kPinnedTabs,
152 PrefHashFilter::ENFORCE_ON_LOAD, 152 PrefHashFilter::ENFORCE_ON_LOAD,
153 PrefHashFilter::TRACKING_STRATEGY_ATOMIC 153 PrefHashFilter::TRACKING_STRATEGY_ATOMIC
154 }, 154 },
155 #endif 155 #endif
156 { 156 {
157 13, prefs::kProfileResetPromptMemento,
158 PrefHashFilter::ENFORCE_ON_LOAD,
159 PrefHashFilter::TRACKING_STRATEGY_ATOMIC
gab 2014/09/03 14:51:39 This should be okay; either it got cleared, or it
engedy 2014/09/04 11:59:45 I went for a middle-ground solution, please see my
160 },
161 {
157 14, DefaultSearchManager::kDefaultSearchProviderDataPrefName, 162 14, DefaultSearchManager::kDefaultSearchProviderDataPrefName,
158 PrefHashFilter::NO_ENFORCEMENT, 163 PrefHashFilter::NO_ENFORCEMENT,
159 PrefHashFilter::TRACKING_STRATEGY_ATOMIC 164 PrefHashFilter::TRACKING_STRATEGY_ATOMIC
160 }, 165 },
161 { 166 {
162 // Protecting kPreferenceResetTime does two things: 167 // Protecting kPreferenceResetTime does two things:
163 // 1) It ensures this isn't accidently set by someone stomping the pref 168 // 1) It ensures this isn't accidently set by someone stomping the pref
164 // file. 169 // file.
165 // 2) More importantly, it declares kPreferenceResetTime as a protected 170 // 2) More importantly, it declares kPreferenceResetTime as a protected
166 // pref which is required for it to be visible when queried via the 171 // pref which is required for it to be visible when queried via the
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 522
518 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 523 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
519 ProfilePrefStoreManager::RegisterProfilePrefs(registry); 524 ProfilePrefStoreManager::RegisterProfilePrefs(registry);
520 } 525 }
521 526
522 void RegisterPrefs(PrefRegistrySimple* registry) { 527 void RegisterPrefs(PrefRegistrySimple* registry) {
523 ProfilePrefStoreManager::RegisterPrefs(registry); 528 ProfilePrefStoreManager::RegisterPrefs(registry);
524 } 529 }
525 530
526 } // namespace chrome_prefs 531 } // namespace chrome_prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698