| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_PREFS_BROWSER_PREFS_H__ | 5 #ifndef CHROME_BROWSER_PREFS_BROWSER_PREFS_H_ |
| 6 #define CHROME_BROWSER_PREFS_BROWSER_PREFS_H__ | 6 #define CHROME_BROWSER_PREFS_BROWSER_PREFS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class PrefService; | 9 class PrefService; |
| 10 class Profile; | 10 class Profile; |
| 11 | 11 |
| 12 namespace browser { | 12 namespace chrome { |
| 13 | |
| 14 // Bitmask for kMultipleProfilePrefMigration. | |
| 15 enum MigratedPreferences { | |
| 16 NO_PREFS = 0, | |
| 17 DNS_PREFS = 1 << 0, | |
| 18 WINDOWS_PREFS = 1 << 1, | |
| 19 GOOGLE_URL_TRACKER_PREFS = 1 << 2, | |
| 20 }; | |
| 21 | 13 |
| 22 // Makes the PrefService objects aware of all the prefs. | 14 // Makes the PrefService objects aware of all the prefs. |
| 23 void RegisterLocalState(PrefService* local_state); | 15 void RegisterLocalState(PrefService* local_state); |
| 24 void RegisterUserPrefs(PrefService* user_prefs); | 16 void RegisterUserPrefs(PrefService* user_prefs); |
| 25 // Migrate prefs from local_state to |profile|'s pref store. | 17 |
| 18 // Migrates prefs from |local_state| to |profile|'s pref store. |
| 26 void MigrateBrowserPrefs(Profile* profile, PrefService* local_state); | 19 void MigrateBrowserPrefs(Profile* profile, PrefService* local_state); |
| 27 | 20 |
| 28 } // namespace browser | 21 } // namespace chrome |
| 29 | 22 |
| 30 #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H__ | 23 #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H_ |
| OLD | NEW |