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

Side by Side Diff: chrome/browser/prefs/tracked/tracked_preferences_migration.h

Issue 257003007: Introduce a new framework for back-and-forth tracked/protected preferences migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_
7
8 #include <set>
9 #include <string>
10
11 class JsonPrefStore;
12
13 // Sets up JsonPrefStore::OnFileReadInterceptors on |unprotected_pref_store|
14 // and |protected_pref_store| such that they are only handed back to their
15 // respective JsonPrefStores on read after we've made sure that the most recent
16 // pref value for |unprotected_pref_names| are in the |unprotected_pref_store|
17 // and conversely for protected preferences.
18 // NOTE: In the event of a synchronous read request (i.e.,
19 // JsonPrefStore::ReadPrefs()): the JsonPrefStore::OnFileReadInterceptors will
20 // make the first read asynchronous, but the double read will complete
21 // synchronously on the second ReadPrefs().
22 void SetupTrackedPrefererencesMigration(
Bernhard Bauer 2014/04/29 15:13:04 There's one "re" too much in there :)
gab 2014/04/29 15:46:44 Haha, good catch, introducing some rimes in the tr
23 const std::set<std::string>& unprotected_pref_names,
24 const std::set<std::string>& protected_pref_names,
25 JsonPrefStore* unprotected_pref_store,
26 JsonPrefStore* protected_pref_store);
27
28 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698