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

Side by Side Diff: chrome/browser/prefs/browser_prefs.h

Issue 6542013: Get rid of browser_prefs::RegisterAllPrefs() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix metrics_log_unittest.cc Created 9 years, 10 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 10
11 namespace browser { 11 namespace browser {
12 12
13 // Bitmask for kMultipleProfilePrefMigration. 13 // Bitmask for kMultipleProfilePrefMigration.
14 enum MigratedPreferences { 14 enum MigratedPreferences {
15 NO_PREFS = 0, 15 NO_PREFS = 0,
16 DNS_PREFS = 1 << 0, 16 DNS_PREFS = 1 << 0,
17 WINDOWS_PREFS = 1 << 1, 17 WINDOWS_PREFS = 1 << 1,
18 }; 18 };
19 19
20 // Makes the PrefService objects aware of all the prefs. 20 // Makes the PrefService objects aware of all the prefs.
21 void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state);
22 void RegisterLocalState(PrefService* local_state); 21 void RegisterLocalState(PrefService* local_state);
23 void RegisterUserPrefs(PrefService* user_prefs); 22 void RegisterUserPrefs(PrefService* user_prefs);
24 // Migrate prefs from local_state to user_prefs. 23 // Migrate prefs from local_state to user_prefs.
25 void MigrateBrowserPrefs(PrefService* user_prefs, PrefService* local_state); 24 void MigrateBrowserPrefs(PrefService* user_prefs, PrefService* local_state);
26 } // namespace browser 25 } // namespace browser
27 26
28 #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H__ 27 #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698