Chromium Code Reviews| 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 | 7 |
| 8 class PrefRegistrySimple; | 8 class PrefRegistrySimple; |
| 9 class PrefService; | 9 class PrefService; |
| 10 class Profile; | 10 class Profile; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 // Profile. | 24 // Profile. |
| 25 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 25 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 26 | 26 |
| 27 #if defined(OS_CHROMEOS) | 27 #if defined(OS_CHROMEOS) |
| 28 // Register all prefs that will be used via a PrefService attached to the login | 28 // Register all prefs that will be used via a PrefService attached to the login |
| 29 // Profile. | 29 // Profile. |
| 30 void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 30 void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 // Migrates prefs from |local_state| to |profile|'s pref store. | 33 // Migrates prefs from |local_state| to |profile|'s pref store. |
| 34 // This should always be executed, and will only migrate the newest changes. | |
|
gab
2015/02/20 20:33:57
Change this entire comment to something like:
//
rkaplow
2015/02/20 21:58:08
Done. Your suggestion SGTM
| |
| 34 void MigrateBrowserPrefs(Profile* profile, PrefService* local_state); | 35 void MigrateBrowserPrefs(Profile* profile, PrefService* local_state); |
|
gab
2015/02/20 20:33:57
Remove |profile| parameter.
rkaplow
2015/02/20 21:58:08
Done.
| |
| 35 | 36 |
| 36 // Migrates prefs in |profile|'s pref store. | 37 // Migrates prefs in |profile|'s pref store. |
| 38 // This should always be executed, and will only migrate the newest changes. | |
|
gab
2015/02/20 20:33:57
Change this entire comment to something like:
//
rkaplow
2015/02/20 21:58:08
Done.
| |
| 37 void MigrateUserPrefs(Profile* profile); | 39 void MigrateUserPrefs(Profile* profile); |
|
gab
2015/02/20 20:33:57
Change the argument from a |Profile* profile| to a
rkaplow
2015/02/20 21:58:08
Done.
| |
| 38 | 40 |
| 39 // Migrates zoom level prefs in |profile|'s pref store to a per-StoragePartition | 41 // Migrates zoom level prefs in |profile|'s pref store to a per-StoragePartition |
| 40 // set of prefs. | 42 // set of prefs. |
| 41 void MigrateProfileZoomLevelPrefs(Profile* profile); | 43 void MigrateProfileZoomLevelPrefs(Profile* profile); |
| 42 | 44 |
| 43 } // namespace chrome | 45 } // namespace chrome |
| 44 | 46 |
| 45 #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H_ | 47 #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H_ |
| OLD | NEW |