Home | History | Annotate | Download | only in prefs
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_PREFS_BROWSER_PREFS_H__
      6 #define CHROME_BROWSER_PREFS_BROWSER_PREFS_H__
      7 #pragma once
      8 
      9 class PrefService;
     10 
     11 namespace browser {
     12 
     13 // Bitmask for kMultipleProfilePrefMigration.
     14 enum MigratedPreferences {
     15   NO_PREFS = 0,
     16   DNS_PREFS = 1 << 0,
     17   WINDOWS_PREFS = 1 << 1,
     18 };
     19 
     20 // Makes the PrefService objects aware of all the prefs.
     21 void RegisterLocalState(PrefService* local_state);
     22 void RegisterUserPrefs(PrefService* user_prefs);
     23 // Migrate prefs from local_state to user_prefs.
     24 void MigrateBrowserPrefs(PrefService* user_prefs, PrefService* local_state);
     25 } // namespace browser
     26 
     27 #endif  // CHROME_BROWSER_PREFS_BROWSER_PREFS_H__
     28