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.
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
8 #include "base/memory/scoped_ptr.h"
20 namespace extensions
{
22 // Support for preference initialization and management.
23 namespace shell_prefs
{
25 // Creates a pref service for device-wide preferences stored in |data_dir|.
26 scoped_ptr
<PrefService
> CreateLocalState(const base::FilePath
& data_dir
);
28 // Creates a pref service that loads user preferences for |browser_context|.
29 scoped_ptr
<PrefService
> CreateUserPrefService(
30 content::BrowserContext
* browser_context
);
32 } // namespace shell_prefs
34 } // namespace extensions
36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_