| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include <memory> |
| 9 | 9 |
| 10 class PrefService; | 10 class PrefService; |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class FilePath; | 13 class FilePath; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class BrowserContext; | 17 class BrowserContext; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace extensions { | 20 namespace extensions { |
| 21 | 21 |
| 22 // Support for preference initialization and management. | 22 // Support for preference initialization and management. |
| 23 namespace shell_prefs { | 23 namespace shell_prefs { |
| 24 | 24 |
| 25 // Creates a pref service for device-wide preferences stored in |data_dir|. | 25 // Creates a pref service for device-wide preferences stored in |data_dir|. |
| 26 scoped_ptr<PrefService> CreateLocalState(const base::FilePath& data_dir); | 26 std::unique_ptr<PrefService> CreateLocalState(const base::FilePath& data_dir); |
| 27 | 27 |
| 28 // Creates a pref service that loads user preferences for |browser_context|. | 28 // Creates a pref service that loads user preferences for |browser_context|. |
| 29 scoped_ptr<PrefService> CreateUserPrefService( | 29 std::unique_ptr<PrefService> CreateUserPrefService( |
| 30 content::BrowserContext* browser_context); | 30 content::BrowserContext* browser_context); |
| 31 | 31 |
| 32 } // namespace shell_prefs | 32 } // namespace shell_prefs |
| 33 | 33 |
| 34 } // namespace extensions | 34 } // namespace extensions |
| 35 | 35 |
| 36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_ | 36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_ |
| OLD | NEW |